summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSymbol.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-06 10:58:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-06 10:58:06 +0000
commitad36e8acebbd53427d472042c574d5e989388f90 (patch)
tree37dedc8c6a3fd0fb7523a7aee44abef38c55f6f9 /llvm/lib/MC/MCSymbol.cpp
parente46fd8531ca80d3f5f16795766dbb39c3aba2458 (diff)
downloadbcm5719-llvm-ad36e8acebbd53427d472042c574d5e989388f90.tar.gz
bcm5719-llvm-ad36e8acebbd53427d472042c574d5e989388f90.zip
Pass StringRef by value.
llvm-svn: 86251
Diffstat (limited to 'llvm/lib/MC/MCSymbol.cpp')
-rw-r--r--llvm/lib/MC/MCSymbol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSymbol.cpp b/llvm/lib/MC/MCSymbol.cpp
index 86ff3f3bddb..b145d07f4a6 100644
--- a/llvm/lib/MC/MCSymbol.cpp
+++ b/llvm/lib/MC/MCSymbol.cpp
@@ -35,7 +35,7 @@ static void MangleLetter(raw_ostream &OS, unsigned char C) {
/// NameNeedsEscaping - Return true if the identifier \arg Str needs quotes
/// for this assembler.
-static bool NameNeedsEscaping(const StringRef &Str, const MCAsmInfo &MAI) {
+static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo &MAI) {
assert(!Str.empty() && "Cannot create an empty MCSymbol");
// If the first character is a number and the target does not allow this, we
OpenPOWER on IntegriCloud