[cfe-commits] r53328 - in /cfe/trunk: include/clang/AST/Builtins.def lib/Sema/SemaDecl.cpp
Chris Lattner
sabre at nondot.org
Wed Jul 9 10:26:41 PDT 2008
Author: lattner
Date: Wed Jul 9 12:26:36 2008
New Revision: 53328
URL: http://llvm.org/viewvc/llvm-project?rev=53328&view=rev
Log:
Add parser support for __builtin_stdarg_start, PR2531
Modified:
cfe/trunk/include/clang/AST/Builtins.def
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/include/clang/AST/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Builtins.def?rev=53328&r1=53327&r2=53328&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Builtins.def (original)
+++ cfe/trunk/include/clang/AST/Builtins.def Wed Jul 9 12:26:36 2008
@@ -99,6 +99,7 @@
BUILTIN(__builtin_va_start, "va&.", "n")
BUILTIN(__builtin_va_end, "va&", "n")
BUILTIN(__builtin_va_copy, "va&a", "n")
+BUILTIN(__builtin_stdarg_start, "va&a", "n")
BUILTIN(__builtin_memcpy, "v*v*vC*z", "n")
BUILTIN(__builtin_return_address, "v*Ui", "n")
BUILTIN(__builtin_frame_address, "v*Ui", "n")
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=53328&r1=53327&r2=53328&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Jul 9 12:26:36 2008
@@ -205,7 +205,8 @@
if (BID == Builtin::BI__builtin_va_start ||
BID == Builtin::BI__builtin_va_copy ||
- BID == Builtin::BI__builtin_va_end)
+ BID == Builtin::BI__builtin_va_end ||
+ BID == Builtin::BI__builtin_stdarg_start)
InitBuiltinVaListType();
QualType R = Context.BuiltinInfo.GetBuiltinType(BID, Context);
More information about the cfe-commits
mailing list