diff options
author | John McCall <rjmccall@apple.com> | 2011-03-11 20:59:21 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-03-11 20:59:21 +0000 |
commit | 32ea9694156f9d0416c8fde39036f978e7d4c8ab (patch) | |
tree | 2eb9bb03b1bb7ae1daab000fdb81ffaf0dde1876 /clang/lib/CodeGen/CGCall.h | |
parent | d767d06b265287b869e8d6d048e3c9f65fe3cc93 (diff) | |
download | bcm5719-llvm-32ea9694156f9d0416c8fde39036f978e7d4c8ab.tar.gz bcm5719-llvm-32ea9694156f9d0416c8fde39036f978e7d4c8ab.zip |
Use a slightly more semantic interface for emitting call arguments.
llvm-svn: 127494
Diffstat (limited to 'clang/lib/CodeGen/CGCall.h')
-rw-r--r-- | clang/lib/CodeGen/CGCall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h index 97e4de0296d..fed29a2cf44 100644 --- a/clang/lib/CodeGen/CGCall.h +++ b/clang/lib/CodeGen/CGCall.h @@ -48,6 +48,10 @@ namespace CodeGen { /// arguments in a call. class CallArgList : public llvm::SmallVector<std::pair<RValue, QualType>, 16> { + public: + void add(RValue rvalue, QualType type) { + push_back(std::pair<RValue,QualType>(rvalue,type)); + } }; /// FunctionArgList - Type for representing both the decl and type |