From: Chris Lattner Date: Thu, 10 Nov 2005 18:53:25 +0000 (+0000) Subject: Call this method with the object we have X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=36c975c023add62efe1d6cd217d2a02ab01b1034;p=oota-llvm.git Call this method with the object we have git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24279 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 0bcb9231b20..6bc3c504344 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -999,7 +999,7 @@ void CWriter::printModuleTypes(const SymbolTable &ST) { Out << "/* Structure forward decls */\n"; for (; I != End; ++I) if (const Type *STy = dyn_cast(I->second)) { - std::string Name = "struct l_" + Mangler::makeNameProper(I->first); + std::string Name = "struct l_" + Mang->makeNameProper(I->first); Out << Name << ";\n"; TypeNames.insert(std::make_pair(STy, Name)); } @@ -1010,7 +1010,7 @@ void CWriter::printModuleTypes(const SymbolTable &ST) { Out << "/* Typedefs */\n"; for (I = ST.type_begin(); I != End; ++I) { const Type *Ty = cast(I->second); - std::string Name = "l_" + Mangler::makeNameProper(I->first); + std::string Name = "l_" + Mang->makeNameProper(I->first); Out << "typedef "; printType(Out, Ty, Name); Out << ";\n"; diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 0bcb9231b20..6bc3c504344 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -999,7 +999,7 @@ void CWriter::printModuleTypes(const SymbolTable &ST) { Out << "/* Structure forward decls */\n"; for (; I != End; ++I) if (const Type *STy = dyn_cast(I->second)) { - std::string Name = "struct l_" + Mangler::makeNameProper(I->first); + std::string Name = "struct l_" + Mang->makeNameProper(I->first); Out << Name << ";\n"; TypeNames.insert(std::make_pair(STy, Name)); } @@ -1010,7 +1010,7 @@ void CWriter::printModuleTypes(const SymbolTable &ST) { Out << "/* Typedefs */\n"; for (I = ST.type_begin(); I != End; ++I) { const Type *Ty = cast(I->second); - std::string Name = "l_" + Mangler::makeNameProper(I->first); + std::string Name = "l_" + Mang->makeNameProper(I->first); Out << "typedef "; printType(Out, Ty, Name); Out << ";\n";