lld: Replace some lld::outs()s with message()

No behavior change.
This commit is contained in:
Nico Weber 2020-12-17 16:19:06 -05:00
parent 1b97cdf885
commit f710bb7063
3 changed files with 4 additions and 4 deletions

View File

@ -1263,7 +1263,7 @@ void LinkerDriver::link(ArrayRef<const char *> argsArr) {
// because it doesn't start with "/", but we deliberately chose "--" to
// avoid conflict with /version and for compatibility with clang-cl.
if (args.hasArg(OPT_dash_dash_version)) {
lld::outs() << getLLDVersion() << "\n";
message(getLLDVersion());
return;
}

View File

@ -325,7 +325,7 @@ static InputFile *addFile(StringRef path, bool forceLoadArchive) {
// printArchiveMemberLoad() prints both .a and .o names, so no need to
// print the .a name here.
if (config->printEachFile && magic != file_magic::archive)
lld::outs() << toString(newFile) << '\n';
message(toString(newFile));
inputFiles.insert(newFile);
}
return newFile;

View File

@ -208,7 +208,7 @@ uint32_t macho::getModTime(StringRef path) {
void macho::printArchiveMemberLoad(StringRef reason, const InputFile *f) {
if (config->printEachFile)
lld::outs() << toString(f) << '\n';
message(toString(f));
if (config->printWhyLoad)
lld::outs() << reason << " forced load of " << toString(f) << '\n';
message(reason + " forced load of " + toString(f));
}