[llvm-commits] [llvm] r122077 - in /llvm/trunk/lib/Support: PathV2.cpp Windows/PathV2.inc

Benjamin Kramer benny.kra at googlemail.com
Fri Dec 17 10:59:10 PST 2010


Author: d0k
Date: Fri Dec 17 12:59:09 2010
New Revision: 122077

URL: http://llvm.org/viewvc/llvm-project?rev=122077&view=rev
Log:
Missed some StringRefRefs.

Modified:
    llvm/trunk/lib/Support/PathV2.cpp
    llvm/trunk/lib/Support/Windows/PathV2.inc

Modified: llvm/trunk/lib/Support/PathV2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PathV2.cpp?rev=122077&r1=122076&r2=122077&view=diff
==============================================================================
--- llvm/trunk/lib/Support/PathV2.cpp (original)
+++ llvm/trunk/lib/Support/PathV2.cpp Fri Dec 17 12:59:09 2010
@@ -39,7 +39,7 @@
 
   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.

Modified: llvm/trunk/lib/Support/Windows/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/PathV2.inc?rev=122077&r1=122076&r2=122077&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Windows/PathV2.inc Fri Dec 17 12:59:09 2010
@@ -41,8 +41,7 @@
     ::GetProcAddress(::GetModuleHandleA("kernel32.dll"),
                      "CreateSymbolicLinkW"));
 
-  error_code UTF8ToUTF16(const StringRef &utf8,
-                               SmallVectorImpl<wchar_t> &utf16) {
+  error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16) {
     int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS,
                                     utf8.begin(), utf8.size(),
                                     utf16.begin(), 0);
@@ -603,8 +602,7 @@
   return success;
 }
 
-error_code directory_iterator_construct(directory_iterator& it,
-                                        const StringRef &path) {
+error_code directory_iterator_construct(directory_iterator &it, StringRef path){
   SmallVector<wchar_t, 128> path_utf16;
 
   if (error_code ec = UTF8ToUTF16(path,





More information about the llvm-commits mailing list