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:
Craig Topper
2015-06-10 02:07:37 +00:00
parent 839f83e1e3
commit f095095d4a

View File

@@ -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;
} }