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.
llvm-svn: 92857
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 575b518..8f16510 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -409,7 +409,8 @@
/// 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