projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove unnecessary conversion from StringRef to std::string and back to StringRef...
[oota-llvm.git]
/
lib
/
Target
/
AArch64
/
InstPrinter
/
AArch64InstPrinter.cpp
diff --git
a/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
b/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
index 96fbe3a9af4dcfb5165bac273c3048d48d1952de..7f56c2cf6bb841b330f6e6faa9b9cf7c414d2365 100644
(file)
--- 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;
}