diff options
author | Fangrui Song <i@maskray.me> | 2024-11-06 22:19:31 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-11-06 22:19:31 -0800 |
commit | f8bae3af74e7c60d996f0d331cad04f2eace7f8f (patch) | |
tree | f718d25356140dc2588a0dcd5399475d7707e532 /lld/ELF/ScriptParser.cpp | |
parent | 09c2c5e1e9f3b3bb17f777f153407430f3cef15e (diff) | |
download | llvm-f8bae3af74e7c60d996f0d331cad04f2eace7f8f.zip llvm-f8bae3af74e7c60d996f0d331cad04f2eace7f8f.tar.gz llvm-f8bae3af74e7c60d996f0d331cad04f2eace7f8f.tar.bz2 |
[ELF] Replace warn(...) with Warn
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 472605f..f57b042 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -306,7 +306,8 @@ void ScriptParser::readNoCrossRefs(bool to) { while (auto tok = till(")")) cmd.outputSections.push_back(unquote(tok)); if (cmd.outputSections.size() < 2) - warn(getCurrentLocation() + ": ignored with fewer than 2 output sections"); + Warn(ctx) << getCurrentLocation() + << ": ignored with fewer than 2 output sections"; else ctx.script->noCrossRefs.push_back(std::move(cmd)); } |