mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-06 21:27:23 +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:
@@ -1358,7 +1358,7 @@ void AArch64InstPrinter::printSystemPStateField(const MCInst *MI, unsigned OpNo,
|
|||||||
StringRef Name =
|
StringRef Name =
|
||||||
AArch64PState::PStateMapper().toString(Val, STI.getFeatureBits(), Valid);
|
AArch64PState::PStateMapper().toString(Val, STI.getFeatureBits(), Valid);
|
||||||
if (Valid)
|
if (Valid)
|
||||||
O << StringRef(Name.str()).upper();
|
O << Name.upper();
|
||||||
else
|
else
|
||||||
O << "#" << Val;
|
O << "#" << Val;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user