summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-06-10 02:07:37 +0000
committerCraig Topper <craig.topper@gmail.com>2015-06-10 02:07:37 +0000
commit8e29d7162352426ecb8d178989d7279f344d423d (patch)
tree238b4cfe3411d18dfa2e99e61cd172c0327fccc8 /llvm/lib/Target
parent8346e52f89a5de0cfcd8a19e4f88565a0039dda1 (diff)
downloadbcm5719-llvm-8e29d7162352426ecb8d178989d7279f344d423d.tar.gz
bcm5719-llvm-8e29d7162352426ecb8d178989d7279f344d423d.zip
Remove unnecessary conversion from StringRef to std::string and back to StringRef. NFC.
llvm-svn: 239455
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp b/llvm/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
index 96fbe3a9af4..7f56c2cf6bb 100644
--- a/llvm/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
+++ b/llvm/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
@@ -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;
}
OpenPOWER on IntegriCloud