summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSectionELF.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/MCSectionELF.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/MCSectionELF.cpp')
-rw-r--r--llvm/lib/MC/MCSectionELF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSectionELF.cpp b/llvm/lib/MC/MCSectionELF.cpp
index 660a8c9489f..c6812ed99c4 100644
--- a/llvm/lib/MC/MCSectionELF.cpp
+++ b/llvm/lib/MC/MCSectionELF.cpp
@@ -15,7 +15,7 @@
using namespace llvm;
MCSectionELF *MCSectionELF::
-Create(const StringRef &Section, unsigned Type, unsigned Flags,
+Create(StringRef Section, unsigned Type, unsigned Flags,
SectionKind K, bool isExplicit, MCContext &Ctx) {
return new (Ctx) MCSectionELF(Section, Type, Flags, K, isExplicit);
}
OpenPOWER on IntegriCloud