aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-17 18:19:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-17 18:19:06 +0000
commitd53f3c864bf94d158a2ae677fe92fd41afaec2f3 (patch)
tree43c0e82f0d0d92603b1644e09b46732a5f153bde /lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
parent090100fdb166e87bc539e3e4048d18c721c187d0 (diff)
Pass StringRefs by value, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp')
-rw-r--r--lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp b/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
index 4fc3b65c83..7012ab0284 100644
--- a/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
+++ b/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
@@ -400,7 +400,7 @@ MBlazeOperand *MBlazeAsmParser::ParseRegister() {
}
}
-static unsigned MatchFslRegister(const StringRef &String) {
+static unsigned MatchFslRegister(StringRef String) {
if (!String.startswith("rfsl"))
return -1;