summaryrefslogtreecommitdiffstats
path: root/clang/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
commitc48d31c31c97dc3b0314f20f2b9c93d8277bfae5 (patch)
tree4b68f4a3e685d11724bebcc3022f5f020cd71618 /clang/lib/CodeGen/CodeGenModule.h
parent48fc20a0343d426abc4ac4818b7b6895ca310617 (diff)
downloadbcm5719-llvm-c48d31c31c97dc3b0314f20f2b9c93d8277bfae5.tar.gz
bcm5719-llvm-c48d31c31c97dc3b0314f20f2b9c93d8277bfae5.zip
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. llvm-svn: 185381
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index a5fca36a937..b4e234f4a79 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/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));
OpenPOWER on IntegriCloud