Skip to content

Commit 4a6f59a

Browse files
committed
[ELF] Replace lld::warn with Warn(ctx)
1 parent 6c19fa4 commit 4a6f59a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lld/ELF/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
641641
ELFOptTable parser;
642642
opt::InputArgList args = parser.parse(ctx, argsArr.slice(1));
643643

644-
// Interpret these flags early because error()/warn() depend on them.
644+
// Interpret these flags early because Err/Warn depend on them.
645645
errorHandler().errorLimit = args::getInteger(args, OPT_error_limit, 20);
646646
errorHandler().fatalWarnings =
647647
args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false) &&

lld/ELF/Symbols.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ void elf::maybeWarnUnorderableSymbol(Ctx &ctx, const Symbol *sym) {
321321
auto *d = dyn_cast<Defined>(sym);
322322

323323
auto report = [&](StringRef s) {
324-
warn(toStr(ctx, file) + s + sym->getName());
324+
Warn(ctx) << toStr(ctx, file) << s << sym->getName();
325325
};
326326

327327
if (sym->isUndefined()) {

0 commit comments

Comments
 (0)