lld: Replace some lld::outs()s with message()
No behavior change.
This commit is contained in:
parent
1b97cdf885
commit
f710bb7063
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue