Skip to content

Commit f710bb7

Browse files
committed
lld: Replace some lld::outs()s with message()
No behavior change.
1 parent 1b97cdf commit f710bb7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lld/COFF/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ void LinkerDriver::link(ArrayRef<const char *> argsArr) {
12631263
// because it doesn't start with "/", but we deliberately chose "--" to
12641264
// avoid conflict with /version and for compatibility with clang-cl.
12651265
if (args.hasArg(OPT_dash_dash_version)) {
1266-
lld::outs() << getLLDVersion() << "\n";
1266+
message(getLLDVersion());
12671267
return;
12681268
}
12691269

lld/MachO/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ static InputFile *addFile(StringRef path, bool forceLoadArchive) {
325325
// printArchiveMemberLoad() prints both .a and .o names, so no need to
326326
// print the .a name here.
327327
if (config->printEachFile && magic != file_magic::archive)
328-
lld::outs() << toString(newFile) << '\n';
328+
message(toString(newFile));
329329
inputFiles.insert(newFile);
330330
}
331331
return newFile;

lld/MachO/DriverUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ uint32_t macho::getModTime(StringRef path) {
208208

209209
void macho::printArchiveMemberLoad(StringRef reason, const InputFile *f) {
210210
if (config->printEachFile)
211-
lld::outs() << toString(f) << '\n';
211+
message(toString(f));
212212
if (config->printWhyLoad)
213-
lld::outs() << reason << " forced load of " << toString(f) << '\n';
213+
message(reason + " forced load of " + toString(f));
214214
}

0 commit comments

Comments
 (0)