aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-11 20:59:21 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-11 20:59:21 +0000
commit413ebdb1af6fb0d81845b61254daf02ba0449afd (patch)
tree519acbf01d04c6673825029eaead650e39c512fc /lib/CodeGen/CGCall.h
parentf4f7cb814f8537606754b9eb8848094196e73214 (diff)
Use a slightly more semantic interface for emitting call arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.h')
-rw-r--r--lib/CodeGen/CGCall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCall.h b/lib/CodeGen/CGCall.h
index 97e4de0296..fed29a2cf4 100644
--- a/lib/CodeGen/CGCall.h
+++ b/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