Pass StringRef by value.
[oota-llvm.git] / lib / Linker / LinkItems.cpp
index 61f3c26c6a1ca50bfc4cb1699d0e8f755ad7f160..494a0130f12f8bfa89c99cbd5553ff5962709a0c 100644 (file)
@@ -70,7 +70,7 @@ Linker::LinkInItems(const ItemList& Items, ItemList& NativeItems) {
 
 /// LinkInLibrary - links one library into the HeadModule.
 ///
-bool Linker::LinkInLibrary(const StringRef &Lib, bool& is_native) {
+bool Linker::LinkInLibrary(StringRef Lib, bool& is_native) {
   is_native = false;
   // Determine where this library lives.
   sys::Path Pathname = FindLib(Lib);