diff options
author | Steve Naroff <snaroff@apple.com> | 2007-11-15 12:35:21 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-11-15 12:35:21 +0000 |
commit | d8ea1ac5761b311fc6e3b45a8154fe281dd18cfb (patch) | |
tree | aeff07daa9450539d26a7e6556e8a6db003bb91f /clang/Sema/SemaDecl.cpp | |
parent | 05caa48fb403cfd5a73909e317e8f1d9e4cb75f4 (diff) | |
download | bcm5719-llvm-d8ea1ac5761b311fc6e3b45a8154fe281dd18cfb.tar.gz bcm5719-llvm-d8ea1ac5761b311fc6e3b45a8154fe281dd18cfb.zip |
Implement support for variadic methods (work in progress).
llvm-svn: 44171
Diffstat (limited to 'clang/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/Sema/SemaDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp index dc1a9935191..2c016df7812 100644 --- a/clang/Sema/SemaDecl.cpp +++ b/clang/Sema/SemaDecl.cpp @@ -2119,7 +2119,8 @@ Sema::DeclTy *Sema::ActOnMethodDeclaration( // optional arguments. The number of types/arguments is obtained // from the Sel.getNumArgs(). ObjcDeclSpec *ArgQT, TypeTy **ArgTypes, IdentifierInfo **ArgNames, - AttributeList *AttrList, tok::ObjCKeywordKind MethodDeclKind) { + AttributeList *AttrList, tok::ObjCKeywordKind MethodDeclKind, + bool isVariadic) { llvm::SmallVector<ParmVarDecl*, 16> Params; for (unsigned i = 0; i < Sel.getNumArgs(); i++) { @@ -2148,7 +2149,7 @@ Sema::DeclTy *Sema::ActOnMethodDeclaration( resultDeclType, CDecl, 0, -1, AttrList, - MethodType == tok::minus, + MethodType == tok::minus, isVariadic, MethodDeclKind == tok::objc_optional ? ObjcMethodDecl::Optional : ObjcMethodDecl::Required); |