diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-06 22:00:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-06 22:00:56 +0000 |
commit | dffb8010a130733f1b55acf0af01deb0a2e083d3 (patch) | |
tree | b3c44ab285ebd917049b50a6e439a38438a2debc /lib/CodeGen/CodeGenModule.h | |
parent | b73e281956ff1ba40c921511a2cd6e7e76ed86a7 (diff) |
Fix linkage for RTTI names by re-using the logic for computing the
linkage of vtables. Before this, we were emitting RTTI names for
template instantiations with strong external linkage rather than with
weak ODR linkage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 575b518767..8f165109f5 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -409,7 +409,8 @@ public: /// getVtableLinkage - Return the appropriate linkage for the vtable, VTT, /// and type information of the given class. - llvm::GlobalVariable::LinkageTypes getVtableLinkage(const CXXRecordDecl *RD); + static llvm::GlobalVariable::LinkageTypes + getVtableLinkage(const CXXRecordDecl *RD); private: /// UniqueMangledName - Unique a name by (if necessary) inserting it into the |