summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-13 07:16:53 +0000
committerChris Lattner <sabre@nondot.org>2010-01-13 07:16:53 +0000
commit2b630fe82229b1ac8346a8ffb69c693804fc298b (patch)
treedff218054737929d131852fde9bc7a419a9655bd /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent1126534dce16693b7ae04847e819c99830dc25a0 (diff)
downloadbcm5719-llvm-2b630fe82229b1ac8346a8ffb69c693804fc298b.tar.gz
bcm5719-llvm-2b630fe82229b1ac8346a8ffb69c693804fc298b.zip
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. llvm-svn: 93302
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index b1957bb0da2..64f49c46922 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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;
OpenPOWER on IntegriCloud