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 | 2295f31810df1ed2dbaf818f2dcba4783bbc68bc (patch) | |
tree | 34852e0b4a85c686b935ac4aa63de48ea8139a3e /clang/lib/CodeGen/Mangle.cpp | |
parent | 406cb75c6b53750a807d64dd57e79f64cd8e9375 (diff) | |
download | bcm5719-llvm-2295f31810df1ed2dbaf818f2dcba4783bbc68bc.tar.gz bcm5719-llvm-2295f31810df1ed2dbaf818f2dcba4783bbc68bc.zip |
Change mangleCXXVtable and mangleCXXRtti to take CXXRecordDecls instead of QualTypes.
llvm-svn: 83793
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r-- | clang/lib/CodeGen/Mangle.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp index 9468520592a..fd772748dbd 100644 --- a/clang/lib/CodeGen/Mangle.cpp +++ b/clang/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) { // <special-name> ::= TV <type> # virtual table Out << "_ZTV"; - mangleType(T); + mangleName(RD); } -void CXXNameMangler::mangleCXXRtti(QualType T) { +void CXXNameMangler::mangleCXXRtti(const CXXRecordDecl *RD) { // <special-name> ::= TI <type> # 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(); } |