mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[driver] Use "const std::string &" instead of StringRef.
…for strings required to be null-terminated. Swift SVN r12790
This commit is contained in:
@@ -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 << '"';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user