diff options
author | John McCall <rjmccall@apple.com> | 2012-02-17 03:33:10 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-02-17 03:33:10 +0000 |
commit | a729c62b81df17a1630de6b8f0709960bee9bc70 (patch) | |
tree | 4fa1b3131c8c709c8a902894dc61606e959b98a6 /clang/lib/CodeGen/TargetInfo.h | |
parent | c833deaa09f835bd2f4e8bbfcf6ecff1dbce8981 (diff) | |
download | bcm5719-llvm-a729c62b81df17a1630de6b8f0709960bee9bc70.tar.gz bcm5719-llvm-a729c62b81df17a1630de6b8f0709960bee9bc70.zip |
Whether an argument is required (in contrast with being an
optional argument passed through the variadic ellipsis)
potentially affects how we need to lower it. Propagate
this information down to the various getFunctionInfo(...)
overloads on CodeGenTypes. Furthermore, rename those
overloads to clarify their distinct purposes, and make
sure we're calling the right one in the right place.
This has a nice side-effect of making it easier to construct
a function type, since the 'variadic' bit is no longer
separable.
This shouldn't really change anything for our existing
platforms, with one minor exception --- we should now call
variadic ObjC methods with the ... in the "right place"
(see the test case), which I guess matters for anyone
running GNUStep on MIPS. Mostly it's just a substantial
clean-up.
llvm-svn: 150788
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.h')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.h b/clang/lib/CodeGen/TargetInfo.h index eabc37b464e..88b4997d48c 100644 --- a/clang/lib/CodeGen/TargetInfo.h +++ b/clang/lib/CodeGen/TargetInfo.h @@ -30,6 +30,7 @@ namespace clang { class Decl; namespace CodeGen { + class CallArgList; class CodeGenModule; class CodeGenFunction; class CGFunctionInfo; @@ -161,7 +162,8 @@ namespace clang { /// same way and some out-of-band information is passed for the /// benefit of variadic callees, as is the case for x86-64. /// In this case the ABI should be consulted. - virtual bool isNoProtoCallVariadic(const CodeGen::CGFunctionInfo &) const; + virtual bool isNoProtoCallVariadic(const CodeGen::CallArgList &args, + const FunctionNoProtoType *fnType) const; }; } |