summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSectionMachO.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/MCSectionMachO.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/MCSectionMachO.cpp')
-rw-r--r--llvm/lib/MC/MCSectionMachO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSectionMachO.cpp b/llvm/lib/MC/MCSectionMachO.cpp
index b3aeb9c1789..6cc67a22252 100644
--- a/llvm/lib/MC/MCSectionMachO.cpp
+++ b/llvm/lib/MC/MCSectionMachO.cpp
@@ -66,7 +66,7 @@ ENTRY(0 /*FIXME*/, S_ATTR_LOC_RELOC)
MCSectionMachO *MCSectionMachO::
-Create(const StringRef &Segment, const StringRef &Section,
+Create(StringRef Segment, StringRef Section,
unsigned TypeAndAttributes, unsigned Reserved2,
SectionKind K, MCContext &Ctx) {
// S_SYMBOL_STUBS must be set for Reserved2 to be non-zero.
OpenPOWER on IntegriCloud