diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-17 18:05:57 +0000 |
commit | 4111024be81e7c0525e42dadcc126d27e5bf2425 (patch) | |
tree | e29124f0d892b86e0c4a155f0366c82117dbedaa /lib/CodeGen/CodeGenTypes.cpp | |
parent | e5d12e8003acab516a58a01f71aae012458a4572 (diff) |
Change self/_cmd to be instances of ImplicitParamDecl instead of ParmVarDecl.
Patch by David Chisnall!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 2f8784f7d5..7dfa2f850c 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -161,6 +161,13 @@ void CodeGenTypes::CollectObjCIvarTypes(ObjCInterfaceDecl *ObjCClass, } } +const llvm::Type *CodeGenTypes::ConvertReturnType(QualType T) { + if (T->isVoidType()) + return llvm::Type::VoidTy; // Result of function uses llvm void. + else + return ConvertType(T); +} + static const llvm::Type* getTypeForFormat(const llvm::fltSemantics * format) { if (format == &llvm::APFloat::IEEEsingle) return llvm::Type::FloatTy; |