Skip to content

Commit 6b7c6fd

Browse files
authored
[PseudoProbe] use print to emit function name (#147873)
This PR is part of #123870. For COFF Asm, function name should be wrapped in quotes. MCSymbol::print will automatically do that.
1 parent 352215c commit 6b7c6fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/MC/MCAsmStreamer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,8 @@ void MCAsmStreamer::emitPseudoProbe(uint64_t Guid, uint64_t Index,
24662466
for (const auto &Site : InlineStack)
24672467
OS << " @ " << std::get<0>(Site) << ":" << std::get<1>(Site);
24682468

2469-
OS << " " << FnSym->getName();
2469+
OS << " ";
2470+
FnSym->print(OS, MAI);
24702471

24712472
EmitEOL();
24722473
}

0 commit comments

Comments
 (0)