summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-07-01 20:53:07 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-07-01 20:53:07 +0000
commit7a36a5913f045bfaf6d26ed874e39a3e7c1ad9ae (patch)
tree7b4a1a8856fc94891bcb24cce993852576c745d7 /lib/CodeGen/CodeGenModule.h
parenta7872d48b904c6b696ac843a82a9dd624e35b032 (diff)
downloadclang-7a36a5913f045bfaf6d26ed874e39a3e7c1ad9ae.tar.gz
clang-7a36a5913f045bfaf6d26ed874e39a3e7c1ad9ae.tar.bz2
clang-7a36a5913f045bfaf6d26ed874e39a3e7c1ad9ae.tar.xz
Simplify linkage code for static local vars.
The key insight here is that weak linkage for a static local variable should always mean linkonce_odr, because every file that needs it will generate a definition. We don't actually care about the precise linkage of the parent context. I feel a bit silly that I didn't realize this before. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index a5fca36a93..b4e234f4a7 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -925,7 +925,6 @@ public:
void AddDependentLib(StringRef Lib);
llvm::GlobalVariable::LinkageTypes getFunctionLinkage(GlobalDecl GD);
- llvm::GlobalVariable::LinkageTypes getFunctionLinkage(const FunctionDecl *D);
void setFunctionLinkage(GlobalDecl GD, llvm::GlobalValue *V) {
V->setLinkage(getFunctionLinkage(GD));