Use StringRef instead of `const std::string &`. NFC.

llvm-svn: 331656
This commit is contained in:
Rui Ueyama 2018-05-07 17:59:34 +00:00
parent 66a9f257b6
commit e4ba06eda6
1 changed files with 3 additions and 3 deletions

View File

@ -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);