diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-09 16:01:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-09 16:01:03 +0000 |
commit | cd7743b5d1cbd0e3d2c77942c11799d3e0d1c320 (patch) | |
tree | a7e89de4f129e7e506bf90e68bbe5fcc83ebdf37 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 8283ba370409bd913d2b3e3275f3be8498c0d221 (diff) | |
download | bcm5719-llvm-cd7743b5d1cbd0e3d2c77942c11799d3e0d1c320.tar.gz bcm5719-llvm-cd7743b5d1cbd0e3d2c77942c11799d3e0d1c320.zip |
Save another call to GetAddrOfFunction.
Thread an optional GV down to EmitGlobalFunctionDefinition so that it can
avoid the lookup when we already know the corresponding llvm global value.
llvm-svn: 196789
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index ec61c596a05..b02f0178d93 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1048,9 +1048,9 @@ private: llvm::Function *F, bool IsIncompleteFunction); - void EmitGlobalDefinition(GlobalDecl D); + void EmitGlobalDefinition(GlobalDecl D, llvm::GlobalValue *GV = 0); - void EmitGlobalFunctionDefinition(GlobalDecl GD); + void EmitGlobalFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV); void EmitGlobalVarDefinition(const VarDecl *D); void EmitAliasDefinition(GlobalDecl GD); void EmitObjCPropertyImplementations(const ObjCImplementationDecl *D); |