From 7fb866643e76dc598473b666439a42a11d97a58c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 17 Dec 2010 18:59:09 +0000 Subject: [PATCH] Missed some StringRefRefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122077 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/PathV2.cpp | 2 +- lib/Support/Windows/PathV2.inc | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index 2a4c4588a35..6e248771ef5 100644 --- a/lib/Support/PathV2.cpp +++ b/lib/Support/PathV2.cpp @@ -39,7 +39,7 @@ namespace { const llvm::error_code success; - StringRef find_first_component(const StringRef &path) { + StringRef find_first_component(StringRef path) { // Look for this first component in the following order. // * empty (in this case we return an empty string) // * either C: or {//,\\}net. diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index 3b02aba09c5..c0c70e04726 100644 --- a/lib/Support/Windows/PathV2.inc +++ b/lib/Support/Windows/PathV2.inc @@ -41,8 +41,7 @@ namespace { ::GetProcAddress(::GetModuleHandleA("kernel32.dll"), "CreateSymbolicLinkW")); - error_code UTF8ToUTF16(const StringRef &utf8, - SmallVectorImpl &utf16) { + error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl &utf16) { int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(), utf8.size(), utf16.begin(), 0); @@ -603,8 +602,7 @@ retry_create_file: return success; } -error_code directory_iterator_construct(directory_iterator& it, - const StringRef &path) { +error_code directory_iterator_construct(directory_iterator &it, StringRef path){ SmallVector path_utf16; if (error_code ec = UTF8ToUTF16(path,