summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-06-30 18:22:51 +0000
committerReid Kleckner <rnk@google.com>2017-06-30 18:22:51 +0000
commit4a4d726bc6788b3169020c70308a07bcc6cc1218 (patch)
tree6b4ceb2374d314d71e70c210948fda61258b63ef /llvm/lib/CodeGen
parent5de7361097cc6969d000ca9c2d3b5a2c02477643 (diff)
downloadbcm5719-llvm-4a4d726bc6788b3169020c70308a07bcc6cc1218.tar.gz
bcm5719-llvm-4a4d726bc6788b3169020c70308a07bcc6cc1218.zip
Drop the LLVM mangler escape when printing the IR name in assembly comments
I'm tired of seeing this: .globl "?Test@@YAXXZ" # -- Begin function ^A?Test@@YAXXZ llvm-svn: 306855
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index c48fcaa7b0d..ff427c9a0d7 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -631,7 +631,9 @@ void AsmPrinter::EmitFunctionHeader() {
const Function *F = MF->getFunction();
if (isVerbose())
- OutStreamer->GetCommentOS() << "-- Begin function " << F->getName() << '\n';
+ OutStreamer->GetCommentOS()
+ << "-- Begin function "
+ << GlobalValue::dropLLVMManglingEscape(F->getName()) << '\n';
// Print out constants referenced by the function
EmitConstantPool();
OpenPOWER on IntegriCloud