Pass StringRef by value.
[oota-llvm.git] / lib / Target / TargetLoweringObjectFile.cpp
index c1aab9921fb22a5b468cb33bfe4715da46c6a0a8..3e17058c18cbf018c9b55eaf6f0df1df45c102d2 100644 (file)
@@ -671,7 +671,7 @@ TargetLoweringObjectFileMachO::~TargetLoweringObjectFileMachO() {
 
 
 const MCSectionMachO *TargetLoweringObjectFileMachO::
-getMachOSection(const StringRef &Segment, const StringRef &Section,
+getMachOSection(StringRef Segment, StringRef Section,
                 unsigned TypeAndAttributes,
                 unsigned Reserved2, SectionKind Kind) const {
   // We unique sections by their segment/section pair.  The returned section