diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-02 23:23:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-02 23:23:47 +0000 |
commit | bf8c24ad89f39c91a36f711ab7c0eced68864987 (patch) | |
tree | f1ae0433cf6445ba08ce647877bb99378d3162c7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f126e590429416744279d7efc9a8956af455ba43 (diff) | |
download | bcm5719-llvm-bf8c24ad89f39c91a36f711ab7c0eced68864987.tar.gz bcm5719-llvm-bf8c24ad89f39c91a36f711ab7c0eced68864987.zip |
Thread CGFunctionInfo construction through CodeGenTypes.
- Inefficient & leaks memory currently, will be cleaned up subsequently.
llvm-svn: 63567
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d02812ac5d9..18870722fa2 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -299,14 +299,14 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D, void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD, llvm::Function *F) { - SetFunctionAttributes(MD, CGFunctionInfo(MD, Context), F); + SetFunctionAttributes(MD, getTypes().getFunctionInfo(MD), F); SetFunctionAttributesForDefinition(MD, F); } void CodeGenModule::SetFunctionAttributes(const FunctionDecl *FD, llvm::Function *F) { - SetFunctionAttributes(FD, CGFunctionInfo(FD), F); + SetFunctionAttributes(FD, getTypes().getFunctionInfo(FD), F); SetGlobalValueAttributes(FD, FD->getStorageClass() == FunctionDecl::Static, FD->isInline(), F, false); |