aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-11 21:24:51 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-11 21:24:51 +0000
commitfc3bf4d4d2aea8353541a5710bed2ad00c451b68 (patch)
tree92799a41861a3074cd6934fdc9fedc68a10b961f /lib/CodeGen/CGCXX.cpp
parentbd785546c9cdaf55f6f3f905292755f749f77fc5 (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/CGCXX.cpp')
-rw-r--r--lib/CodeGen/CGCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index b8e738fb5e..1dde3d22b8 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -1154,8 +1154,7 @@ llvm::Value *CodeGenFunction::GenerateVtable(const CXXRecordDecl *RD) {
llvm::SmallString<256> OutName;
llvm::raw_svector_ostream Out(OutName);
QualType ClassTy;
- ClassTy = getContext().getTagDeclType(RD);
- mangleCXXVtable(CGM.getMangleContext(), ClassTy, Out);
+ mangleCXXVtable(CGM.getMangleContext(), RD, Out);
llvm::GlobalVariable::LinkageTypes linktype;
linktype = llvm::GlobalValue::WeakAnyLinkage;
std::vector<llvm::Constant *> methods;