[llvm-commits] [llvm] r93302 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Tue Jan 12 23:16:53 PST 2010
Author: lattner
Date: Wed Jan 13 01:16:53 2010
New Revision: 93302
URL: http://llvm.org/viewvc/llvm-project?rev=93302&view=rev
Log:
use the new form of getNameWithPrefix, not makeNameProper.
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.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=93302&r1=93301&r2=93302&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Wed Jan 13 01:16:53 2010
@@ -1682,7 +1682,7 @@
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;
More information about the llvm-commits
mailing list