[lld] r331656 - Use StringRef instead of `const std::string &`. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 10:59:34 PDT 2018


Author: ruiu
Date: Mon May  7 10:59:34 2018
New Revision: 331656

URL: http://llvm.org/viewvc/llvm-project?rev=331656&view=rev
Log:
Use StringRef instead of `const std::string &`. NFC.

Modified:
    lld/trunk/ELF/LTO.cpp

Modified: lld/trunk/ELF/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LTO.cpp?rev=331656&r1=331655&r2=331656&view=diff
==============================================================================
--- lld/trunk/ELF/LTO.cpp (original)
+++ lld/trunk/ELF/LTO.cpp Mon May  7 10:59:34 2018
@@ -79,9 +79,9 @@ static void checkError(Error E) {
 // SkipModuleByDistributedBackend flag which requests distributed backend
 // to skip the compilation of the corresponding module and produce an empty
 // object file.
-static void writeEmptyDistributedBuildOutputs(const std::string &ModulePath,
-                                              const std::string &OldPrefix,
-                                              const std::string &NewPrefix,
+static void writeEmptyDistributedBuildOutputs(StringRef ModulePath,
+                                              StringRef OldPrefix,
+                                              StringRef NewPrefix,
                                               bool SkipModule) {
   std::string NewModulePath =
       lto::getThinLTOOutputFile(ModulePath, OldPrefix, NewPrefix);




More information about the llvm-commits mailing list