From fc3bf4d4d2aea8353541a5710bed2ad00c451b68 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 11 Oct 2009 21:24:51 +0000 Subject: 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 --- lib/CodeGen/Mangle.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/CodeGen/Mangle.cpp') diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index 9468520592..fd772748db 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -51,8 +51,8 @@ namespace { int64_t nv_r, int64_t v_r); void mangleGuardVariable(const VarDecl *D); - void mangleCXXVtable(QualType Type); - void mangleCXXRtti(QualType Type); + void mangleCXXVtable(const CXXRecordDecl *RD); + void mangleCXXRtti(const CXXRecordDecl *RD); void mangleCXXCtor(const CXXConstructorDecl *D, CXXCtorType Type); void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type); @@ -198,16 +198,16 @@ void CXXNameMangler::mangleCXXDtor(const CXXDestructorDecl *D, mangle(D); } -void CXXNameMangler::mangleCXXVtable(QualType T) { +void CXXNameMangler::mangleCXXVtable(const CXXRecordDecl *RD) { // ::= TV # virtual table Out << "_ZTV"; - mangleType(T); + mangleName(RD); } -void CXXNameMangler::mangleCXXRtti(QualType T) { +void CXXNameMangler::mangleCXXRtti(const CXXRecordDecl *RD) { // ::= TI # typeinfo structure Out << "_ZTI"; - mangleType(T); + mangleName(RD); } void CXXNameMangler::mangleGuardVariable(const VarDecl *D) { @@ -1414,18 +1414,18 @@ namespace clang { os.flush(); } - void mangleCXXVtable(MangleContext &Context, QualType Type, + void mangleCXXVtable(MangleContext &Context, const CXXRecordDecl *RD, llvm::raw_ostream &os) { CXXNameMangler Mangler(Context, os); - Mangler.mangleCXXVtable(Type); + Mangler.mangleCXXVtable(RD); os.flush(); } - void mangleCXXRtti(MangleContext &Context, QualType Type, + void mangleCXXRtti(MangleContext &Context, const CXXRecordDecl *RD, llvm::raw_ostream &os) { CXXNameMangler Mangler(Context, os); - Mangler.mangleCXXRtti(Type); + Mangler.mangleCXXRtti(RD); os.flush(); } -- cgit v1.2.3