use the new form of getNameWithPrefix, not makeNameProper.
authorChris Lattner <sabre@nondot.org>
Wed, 13 Jan 2010 07:16:53 +0000 (07:16 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Jan 2010 07:16:53 +0000 (07:16 +0000)
Among other things, this would do very weird things if the
basic block name had (e.g.) a space in it on darwin:
makeNameProper would add quotes, then the mcsymbol would
escape the quotes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93302 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index b1957bb0da297e78ce0d686167509a954615352f..64f49c46922cc06ae125648d882673acb7e17e23 100644 (file)
@@ -1682,7 +1682,7 @@ MCSymbol *AsmPrinter::GetBlockAddressSymbol(const Function *F,
   SmallString<60> NameResult;
   raw_svector_ostream(NameResult) << MAI->getPrivateGlobalPrefix() << "BA"
     << FuncName.size() << '_' << FuncName << '_';
-  Mang->makeNameProper(NameResult, BB->getName());
+  Mang->getNameWithPrefix(NameResult, BB->getName());
   if (Suffix[0])
     NameResult += Suffix;