[clang-tools-extra] r190511 - Modularize: Use in-place version of sys::path::native.

Benjamin Kramer benny.kra at googlemail.com
Wed Sep 11 03:45:25 PDT 2013


Author: d0k
Date: Wed Sep 11 05:45:25 2013
New Revision: 190511

URL: http://llvm.org/viewvc/llvm-project?rev=190511&view=rev
Log:
Modularize: Use in-place version of sys::path::native.

Modified:
    clang-tools-extra/trunk/modularize/Modularize.cpp

Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=190511&r1=190510&r2=190511&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Wed Sep 11 05:45:25 2013
@@ -215,7 +215,7 @@ error_code getHeaderFileNames(SmallVecto
       else
         HeaderFileName = CurrentDirectory;
       sys::path::append(HeaderFileName, TargetAndDependents.first);
-      llvm::sys::path::native(HeaderFileName.str(), HeaderFileName);
+      sys::path::native(HeaderFileName);
     }
     // Handle optional dependencies.
     DependentsVector Dependents;
@@ -233,7 +233,7 @@ error_code getHeaderFileNames(SmallVecto
           Dependent = CurrentDirectory;
         sys::path::append(Dependent, DependentsList[Index]);
       }
-      llvm::sys::path::native(Dependent.str(), Dependent);
+      sys::path::native(Dependent);
       Dependents.push_back(Dependent.str());
     }
     // Save the resulting header file path and dependencies.





More information about the cfe-commits mailing list