summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-30 01:52:02 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-30 01:52:02 +0000
commit958c9f8524963fcee47e5cc8a4393ea59b5f5955 (patch)
treeaa2403e5ee4778f8861224a8a625285d410cdf05 /clang/lib/CodeGen/Mangle.cpp
parent4246f00e0cc99d30e6699c1d7368034ce7125e6e (diff)
downloadbcm5719-llvm-958c9f8524963fcee47e5cc8a4393ea59b5f5955.tar.gz
bcm5719-llvm-958c9f8524963fcee47e5cc8a4393ea59b5f5955.zip
Fix thinko, mangleCXXRtti should obviously take a QualType!
llvm-svn: 85565
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index ff8cc2b044d..a5b34527969 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 Type *Ty);
+ void mangleCXXRtti(QualType Ty);
void mangleCXXCtor(const CXXConstructorDecl *D, CXXCtorType Type);
void mangleCXXDtor(const CXXDestructorDecl *D, CXXDtorType Type);
@@ -212,12 +212,11 @@ void CXXNameMangler::mangleCXXVTT(const CXXRecordDecl *RD) {
mangleName(RD);
}
-void CXXNameMangler::mangleCXXRtti(const Type *Ty) {
+void CXXNameMangler::mangleCXXRtti(QualType Ty) {
// <special-name> ::= TI <type> # typeinfo structure
Out << "_ZTI";
- // FIXME: mangleType should probably take a const Type * instead.
- mangleType(QualType(Ty, 0));
+ mangleType(Ty);
}
void CXXNameMangler::mangleGuardVariable(const VarDecl *D) {
@@ -1434,7 +1433,7 @@ namespace clang {
os.flush();
}
- void mangleCXXRtti(MangleContext &Context, const Type *Ty,
+ void mangleCXXRtti(MangleContext &Context, QualType Ty,
llvm::raw_ostream &os) {
CXXNameMangler Mangler(Context, os);
Mangler.mangleCXXRtti(Ty);
OpenPOWER on IntegriCloud