mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Remove unnecessary conversion from StringRef to std::string and back to StringRef. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
839f83e1e3
commit
f095095d4a
@ -1358,7 +1358,7 @@ void AArch64InstPrinter::printSystemPStateField(const MCInst *MI, unsigned OpNo,
|
||||
StringRef Name =
|
||||
AArch64PState::PStateMapper().toString(Val, STI.getFeatureBits(), Valid);
|
||||
if (Valid)
|
||||
O << StringRef(Name.str()).upper();
|
||||
O << Name.upper();
|
||||
else
|
||||
O << "#" << Val;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user