[llvm] r239455 - Remove unnecessary conversion from StringRef to std::string and back to StringRef. NFC.
Craig Topper
craig.topper at gmail.com
Tue Jun 9 19:07:37 PDT 2015
Author: ctopper
Date: Tue Jun 9 21:07:37 2015
New Revision: 239455
URL: http://llvm.org/viewvc/llvm-project?rev=239455&view=rev
Log:
Remove unnecessary conversion from StringRef to std::string and back to StringRef. NFC.
Modified:
llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
Modified: llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp?rev=239455&r1=239454&r2=239455&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp Tue Jun 9 21:07:37 2015
@@ -1358,7 +1358,7 @@ void AArch64InstPrinter::printSystemPSta
StringRef Name =
AArch64PState::PStateMapper().toString(Val, STI.getFeatureBits(), Valid);
if (Valid)
- O << StringRef(Name.str()).upper();
+ O << Name.upper();
else
O << "#" << Val;
}
More information about the llvm-commits
mailing list