summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-30 01:26:12 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-30 01:26:12 +0000
commit430046321bc6272a808f3e158f11dcabd268c653 (patch)
tree7748a756a543acf10e62b0329933a5895e798b84 /clang/lib/CodeGen/Mangle.cpp
parent6c5a8e255571e283983ff726ca55b1ff17f532f5 (diff)
downloadbcm5719-llvm-430046321bc6272a808f3e158f11dcabd268c653.tar.gz
bcm5719-llvm-430046321bc6272a808f3e158f11dcabd268c653.zip
mangleCXXRtti obviously needs to take a type, what was I thinking...
llvm-svn: 85555
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index 40c11a57443..ff8cc2b044d 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud