diff options
author | Anders Carlsson <andersca@mac.com> | 2009-10-30 01:26:12 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-10-30 01:26:12 +0000 |
commit | 731f7f95836f6f80a10ceae3027a7237ce443f33 (patch) | |
tree | f5985ae8c80aaf4f2940a427623854d48089d456 /lib/CodeGen/Mangle.cpp | |
parent | e23fa2d0e84d1b878e012442a726c664216a9adf (diff) |
mangleCXXRtti obviously needs to take a type, what was I thinking...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r-- | lib/CodeGen/Mangle.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp index 40c11a5744..ff8cc2b044 100644 --- a/lib/CodeGen/Mangle.cpp +++ b/lib/CodeGen/Mangle.cpp @@ -53,7 +53,7 @@ namespace { void mangleCXXVtable(const CXXRecordDecl *RD); void mangleCXXVTT(const CXXRecordDecl *RD); - void mangleCXXRtti(const CXXRecordDecl *RD); + void mangleCXXRtti(const Type *Ty); void mangleCXXCtor(const CXXConstructorDecl *D, CXXCtorType Type); void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type); @@ -212,10 +212,12 @@ void CXXNameMangler::mangleCXXVTT(const CXXRecordDecl *RD) { mangleName(RD); } -void CXXNameMangler::mangleCXXRtti(const CXXRecordDecl *RD) { +void CXXNameMangler::mangleCXXRtti(const Type *Ty) { // <special-name> ::= TI <type> # typeinfo structure Out << "_ZTI"; - mangleName(RD); + + // FIXME: mangleType should probably take a const Type * instead. + mangleType(QualType(Ty, 0)); } void CXXNameMangler::mangleGuardVariable(const VarDecl *D) { @@ -1432,10 +1434,10 @@ namespace clang { os.flush(); } - void mangleCXXRtti(MangleContext &Context, const CXXRecordDecl *RD, + void mangleCXXRtti(MangleContext &Context, const Type *Ty, llvm::raw_ostream &os) { CXXNameMangler Mangler(Context, os); - Mangler.mangleCXXRtti(RD); + Mangler.mangleCXXRtti(Ty); os.flush(); } |