[lld] [ELF] Add context-aware diagnostic functions (PR #112319)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 16:35:46 PDT 2024
================
@@ -2780,8 +2790,9 @@ static void readSecurityNotes(Ctx &ctx) {
if (ctx.arg.zForceBti && !(features & GNU_PROPERTY_AARCH64_FEATURE_1_BTI)) {
features |= GNU_PROPERTY_AARCH64_FEATURE_1_BTI;
if (ctx.arg.zBtiReport == "none")
- warn(toString(f) + ": -z force-bti: file does not have "
- "GNU_PROPERTY_AARCH64_FEATURE_1_BTI property");
+ Warn(ctx) << f
----------------
aganea wrote:
This is great, it looks much better!
https://github.com/llvm/llvm-project/pull/112319
More information about the llvm-commits
mailing list