aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-02 21:43:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-02 21:43:58 +0000
commitbb36d331f439f49859efcfb4435c61762fbba6f9 (patch)
tree3139391810c41d81ca06b776f0fa02aa4623c353 /lib/CodeGen/CGCall.h
parentd863517ab7e936cbc3244a0fc431c8b672f5ece4 (diff)
ABI handling API changes.
- Lift CGFunctionInfo creation up to callers of EmitCall. - Move isVariadic bit out of CGFunctionInfo, take as argument to GetFunctionType instead. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.h')
-rw-r--r--lib/CodeGen/CGCall.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/CodeGen/CGCall.h b/lib/CodeGen/CGCall.h
index fd6eb48159..7ca5f26a8f 100644
--- a/lib/CodeGen/CGCall.h
+++ b/lib/CodeGen/CGCall.h
@@ -54,23 +54,20 @@ namespace CodeGen {
/// CGFunctionInfo - Class to encapsulate the information about a
/// function definition.
class CGFunctionInfo {
- bool IsVariadic;
-
llvm::SmallVector<QualType, 16> ArgTypes;
public:
CGFunctionInfo(const FunctionTypeNoProto *FTNP);
CGFunctionInfo(const FunctionTypeProto *FTP);
CGFunctionInfo(const FunctionDecl *FD);
- CGFunctionInfo(const ObjCMethodDecl *MD,
- const ASTContext &Context);
- CGFunctionInfo(QualType ResTy, const CallArgList &Args,
- bool _IsVariadic);
-
- bool isVariadic() const { return IsVariadic; }
+ CGFunctionInfo(const ObjCMethodDecl *MD, const ASTContext &Context);
+ CGFunctionInfo(QualType ResTy, const CallArgList &Args);
+ CGFunctionInfo(QualType ResTy, const FunctionArgList &Args);
ArgTypeIterator argtypes_begin() const;
ArgTypeIterator argtypes_end() const;
+
+ QualType getReturnType() const { return ArgTypes[0]; }
};
} // end namespace CodeGen
} // end namespace clang