aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-21 14:04:13 -0800
committerFangrui Song <i@maskray.me>2020-12-21 14:04:13 -0800
commitd9a0c40bce5f0b1325b89c36785d82fa146547aa (patch)
tree1d058385d8d0cd0e1de265172b8f2997c19ec438 /llvm/lib/MC/MCObjectStreamer.cpp
parentd33abc337c74d03d4e49b8d81a2dba7f23594a1a (diff)
downloadllvm-d9a0c40bce5f0b1325b89c36785d82fa146547aa.zip
llvm-d9a0c40bce5f0b1325b89c36785d82fa146547aa.tar.gz
llvm-d9a0c40bce5f0b1325b89c36785d82fa146547aa.tar.bz2
[MC] Split MCContext::createTempSymbol, default AlwaysAddSuffix to true, and add comments
CanBeUnnamed is rarely false. Splitting to a createNamedTempSymbol makes the intention clearer and matches the direction of reverted r240130 (to drop the unneeded parameters). No behavior change.
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 2f464f4..1c23d31 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -248,7 +248,7 @@ void MCObjectStreamer::emitValueImpl(const MCExpr *Value, unsigned Size,
}
MCSymbol *MCObjectStreamer::emitCFILabel() {
- MCSymbol *Label = getContext().createTempSymbol("cfi", true);
+ MCSymbol *Label = getContext().createTempSymbol("cfi");
emitLabel(Label);
return Label;
}