diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-05 17:49:37 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-05 17:49:37 +0000 |
| commit | 144a31f53b0a97a2c46bfcb1e2a40fa8327b8e89 (patch) | |
| tree | 3f4462bd613684a2d4617040f3aa994c6d3d2fb3 /lib/CodeGen/CodeGenModule.h | |
| parent | 88c200473d133a4e40083af22c316da536bad755 (diff) | |
| download | clang-144a31f53b0a97a2c46bfcb1e2a40fa8327b8e89.tar.gz clang-144a31f53b0a97a2c46bfcb1e2a40fa8327b8e89.tar.bz2 clang-144a31f53b0a97a2c46bfcb1e2a40fa8327b8e89.tar.xz | |
[ms-cxxabi] Thread GlobalDecls through to CodeGenModule::getFunctionLinkage.
This is so that we can give destructor variants different linkage later.
Differential Revision: http://llvm-reviews.chandlerc.com/D819
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index aa48cce08b..b2ff60deff 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -386,7 +386,7 @@ class CodeGenModule : public CodeGenTypeCache { void createCUDARuntime(); bool isTriviallyRecursive(const FunctionDecl *F); - bool shouldEmitFunction(const FunctionDecl *F); + bool shouldEmitFunction(GlobalDecl GD); /// @name Cache for Blocks Runtime Globals /// @{ @@ -924,11 +924,10 @@ public: /// \brief Appends a dependent lib to the "Linker Options" metadata value. void AddDependentLib(StringRef Lib); - llvm::GlobalVariable::LinkageTypes - getFunctionLinkage(const FunctionDecl *FD); + llvm::GlobalVariable::LinkageTypes getFunctionLinkage(GlobalDecl GD); - void setFunctionLinkage(const FunctionDecl *FD, llvm::GlobalValue *V) { - V->setLinkage(getFunctionLinkage(FD)); + void setFunctionLinkage(GlobalDecl GD, llvm::GlobalValue *V) { + V->setLinkage(getFunctionLinkage(GD)); } /// getVTableLinkage - Return the appropriate linkage for the vtable, VTT, |
