From: Craig Topper Date: Wed, 10 Jun 2015 02:07:37 +0000 (+0000) Subject: Remove unnecessary conversion from StringRef to std::string and back to StringRef... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=f095095d4a756e93c46424623b60e32412ab8517 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 --- diff --git a/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp b/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp index 96fbe3a9af4..7f56c2cf6bb 100644 --- a/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp +++ b/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; }