Add prototype info for __builtin_memcpy, reducing #diagnostics from 37 to 34 on

PR1750

llvm-svn: 43435
This commit is contained in:
Chris Lattner 2007-10-29 04:18:06 +00:00
parent 645ff3ff61
commit cc779571b8
2 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,10 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context) {
else
Type = Context.CharTy;
break;
case 'z': // size_t.
assert(!Long && !Signed && !Unsigned && "Bad modifiers for 'z'!");
Type = Context.getSizeType();
break;
case 'F':
Type = Context.getCFConstantStringType();
break;

View File

@ -29,6 +29,7 @@
// i -> int
// f -> float
// d -> double
// z -> size_t
// F -> constant CFString
// V -> __builtin_va_list
// . -> "...". This may only occur at the end of the function list.
@ -63,5 +64,6 @@ BUILTIN(__builtin___CFStringMakeConstantString, "FC*cC*", "nc")
BUILTIN(__builtin_va_start, "vV&.", "n")
BUILTIN(__builtin_va_end, "vV&", "n")
BUILTIN(__builtin_va_copy, "vV&V", "n")
BUILTIN(__builtin_memcpy, "v*v*vC*z", "n")
#undef BUILTIN