diff options
author | Fangrui Song <i@maskray.me> | 2020-12-21 14:04:13 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-12-21 14:04:13 -0800 |
commit | d9a0c40bce5f0b1325b89c36785d82fa146547aa (patch) | |
tree | 1d058385d8d0cd0e1de265172b8f2997c19ec438 /llvm/lib/MC/MCObjectStreamer.cpp | |
parent | d33abc337c74d03d4e49b8d81a2dba7f23594a1a (diff) | |
download | llvm-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.cpp | 2 |
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; } |