[driver] Use "const std::string &" instead of StringRef.

…for strings required to be null-terminated.

Swift SVN r12790
This commit is contained in:
Jordan Rose
2014-01-22 21:56:24 +00:00
parent 378f18c430
commit c101e360a9
4 changed files with 25 additions and 15 deletions

View File

@@ -821,11 +821,11 @@ Job *Driver::buildJobsForAction(const Compilation &C, const Action *A,
<< ": \"" << Output->getPrimaryOutputFilename() << '"';
for (unsigned i = (types::TY_INVALID + 1), e = types::TY_LAST; i != e; ++i){
Optional<StringRef> AdditionalOutput =
StringRef AdditionalOutput =
Output->getAdditionalOutputForType((types::ID)i);
if (AdditionalOutput.hasValue()) {
if (!AdditionalOutput.empty()) {
llvm::outs() << ", " << types::getTypeName((types::ID)i) << ": \""
<< AdditionalOutput.getValue() << '"';
<< AdditionalOutput << '"';
}
}