diff options
author | Rui Ueyama <ruiu@google.com> | 2018-05-07 17:59:34 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-05-07 17:59:34 +0000 |
commit | e4ba06eda656c52ef8e5533240e1cb5b8fe8cdd7 (patch) | |
tree | 5ee9c329e7196fc0f3b1d740d32f5b48358947ef | |
parent | 66a9f257b6a545c4208aea47b30d6408ea83a417 (diff) | |
download | bcm5719-llvm-e4ba06eda656c52ef8e5533240e1cb5b8fe8cdd7.tar.gz bcm5719-llvm-e4ba06eda656c52ef8e5533240e1cb5b8fe8cdd7.zip |
Use StringRef instead of `const std::string &`. NFC.
llvm-svn: 331656
-rw-r--r-- | lld/ELF/LTO.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp index 46423bf026f..c9e6448d231 100644 --- a/lld/ELF/LTO.cpp +++ b/lld/ELF/LTO.cpp @@ -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); |