diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-13 18:23:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-13 18:23:07 +0000 |
commit | b14d1237740b76d3f9f9b116f1dab4564c4744ca (patch) | |
tree | 37f5000052e2162a19bb503fb402203e97fdbe71 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 13327bbe5535da30a203cd8b00d4037085e6d557 (diff) | |
download | bcm5719-llvm-b14d1237740b76d3f9f9b116f1dab4564c4744ca.tar.gz bcm5719-llvm-b14d1237740b76d3f9f9b116f1dab4564c4744ca.zip |
Give explicit template instantiations weak ODR linkage. Former
iterations of this patch gave explicit template instantiation
link-once ODR linkage, which permitted the back end to eliminate
unused symbols. Weak ODR linkage still requires the symbols to be
generated.
llvm-svn: 98441
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 40dc5638898..9077adedd0b 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -437,7 +437,8 @@ public: GVA_C99Inline, GVA_CXXInline, GVA_StrongExternal, - GVA_TemplateInstantiation + GVA_TemplateInstantiation, + GVA_ExplicitTemplateInstantiation }; llvm::GlobalVariable::LinkageTypes |