@@ -85,6 +85,7 @@ static void setConfigs(Ctx &ctx, opt::InputArgList &args);
8585static void readConfigs (Ctx &ctx, opt::InputArgList &args);
8686
8787ELFSyncStream elf::Log (Ctx &ctx) { return {ctx, DiagLevel::Log}; }
88+ ELFSyncStream elf::Msg (Ctx &ctx) { return {ctx, DiagLevel::Msg}; }
8889ELFSyncStream elf::Warn (Ctx &ctx) { return {ctx, DiagLevel::Warn}; }
8990ELFSyncStream elf::Err (Ctx &ctx) {
9091 return {ctx, ctx.arg .noinhibitExec ? DiagLevel::Warn : DiagLevel::Err};
@@ -672,7 +673,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
672673 // of Libtool. We cannot convince every software developer to migrate to
673674 // the latest version and re-generate scripts. So we have this hack.
674675 if (args.hasArg (OPT_v) || args.hasArg (OPT_version))
675- message ( getLLDVersion () + " (compatible with GNU linkers)" ) ;
676+ Msg (ctx) << getLLDVersion () << " (compatible with GNU linkers)" ;
676677
677678 if (const char *path = getReproduceOption (args)) {
678679 // Note that --reproduce is a debug option so you can ignore it
@@ -1151,10 +1152,10 @@ static void ltoValidateAllVtablesHaveTypeInfos(Ctx &ctx,
11511152 ctx.ltoAllVtablesHaveTypeInfos = vtableSymbolsWithNoRTTI.empty ();
11521153 // Check for unmatched RTTI symbols
11531154 for (StringRef s : vtableSymbolsWithNoRTTI) {
1154- message (
1155- " --lto-validate-all-vtables-have-type-infos: RTTI missing for vtable "
1156- " _ZTV" +
1157- s + " , --lto-whole-program-visibility disabled" ) ;
1155+ Msg (ctx) << " --lto-validate-all-vtables-have-type-infos: RTTI missing for "
1156+ " vtable "
1157+ " _ZTV"
1158+ << s << " , --lto-whole-program-visibility disabled" ;
11581159 }
11591160}
11601161
0 commit comments