diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-11 21:24:51 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-11 21:24:51 +0000 |
commit | fc3bf4d4d2aea8353541a5710bed2ad00c451b68 (patch) | |
tree | 92799a41861a3074cd6934fdc9fedc68a10b961f /lib/CodeGen/CGRtti.cpp | |
parent | bd785546c9cdaf55f6f3f905292755f749f77fc5 (diff) |
Change mangleCXXVtable and mangleCXXRtti to take CXXRecordDecls instead of QualTypes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRtti.cpp')
-rw-r--r-- | lib/CodeGen/CGRtti.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGRtti.cpp b/lib/CodeGen/CGRtti.cpp index 15f56dc7cc..7bc774fce7 100644 --- a/lib/CodeGen/CGRtti.cpp +++ b/lib/CodeGen/CGRtti.cpp @@ -25,9 +25,8 @@ llvm::Constant *CodeGenModule::GenerateRtti(const CXXRecordDecl *RD) { llvm::SmallString<256> OutName; llvm::raw_svector_ostream Out(OutName); - QualType ClassTy; - ClassTy = getContext().getTagDeclType(RD); - mangleCXXRtti(getMangleContext(), ClassTy, Out); + mangleCXXRtti(getMangleContext(), RD, Out); + llvm::GlobalVariable::LinkageTypes linktype; linktype = llvm::GlobalValue::WeakAnyLinkage; std::vector<llvm::Constant *> info; |