diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-16 03:19:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-16 03:19:19 +0000 |
commit | a94ecd2a0bb922d85212d5ff25a71ba921e9880a (patch) | |
tree | c2772a6bd7d8d4cb6a0cdb1ba8cf8445e53d5b86 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8bc821ae7c8b6e39ca7d036f6fd95ad5e2fafd7b (diff) | |
download | bcm5719-llvm-a94ecd2a0bb922d85212d5ff25a71ba921e9880a.tar.gz bcm5719-llvm-a94ecd2a0bb922d85212d5ff25a71ba921e9880a.zip |
Add NeXT runtime support for generating methods.
Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an
ImplicitParamDecl.
Drop hasAggregateLLVMType from CodeGenModule.cpp (use version in
CodeGenFunction).
Change the Objective-C method generation to use EmitParmDecl for
implicit parameters.
llvm-svn: 54838
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 18672072480..bbd7ab4bc9d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -166,11 +166,6 @@ void CodeGenModule::EmitAnnotations() { gv->setSection("llvm.metadata"); } -bool hasAggregateLLVMType(QualType T) { - return !T->isRealType() && !T->isPointerLikeType() && - !T->isVoidType() && !T->isVectorType() && !T->isFunctionType(); -} - void CodeGenModule::SetGlobalValueAttributes(const FunctionDecl *FD, llvm::GlobalValue *GV) { // TODO: Set up linkage and many other things. Note, this is a simple @@ -208,7 +203,7 @@ void CodeGenModule::SetFunctionAttributes(const FunctionDecl *FD, if (FuncAttrs) ParamAttrList.push_back(llvm::ParamAttrsWithIndex::get(0, FuncAttrs)); // Note that there is parallel code in CodeGenFunction::EmitCallExpr - bool AggregateReturn = hasAggregateLLVMType(FD->getResultType()); + bool AggregateReturn = CodeGenFunction::hasAggregateLLVMType(FD->getResultType()); if (AggregateReturn) ParamAttrList.push_back( llvm::ParamAttrsWithIndex::get(1, llvm::ParamAttr::StructRet)); |