[lld] fd6d660 - [ELF] Don't ignore --detect-odr-violations
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 20 16:52:09 PST 2022
Author: Fangrui Song
Date: 2022-11-21T00:52:03Z
New Revision: fd6d660917142b26c08c3c47e1faedc6d25f4a51
URL: https://github.com/llvm/llvm-project/commit/fd6d660917142b26c08c3c47e1faedc6d25f4a51
DIFF: https://github.com/llvm/llvm-project/commit/fd6d660917142b26c08c3c47e1faedc6d25f4a51.diff
LOG: [ELF] Don't ignore --detect-odr-violations
We don't implement the gold specific feature and it's inappropriate to ignore it.
The option is used by some projects under gold configure checks.
Added:
Modified:
lld/ELF/Options.td
lld/test/ELF/silent-ignore.test
Removed:
################################################################################
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td
index 2e9e057a09615..2a678ede6da66 100644
--- a/lld/ELF/Options.td
+++ b/lld/ELF/Options.td
@@ -698,7 +698,6 @@ def: J<"plugin-opt=-pass-through=">;
def plugin_opt_eq : J<"plugin-opt=">;
// Options listed below are silently ignored for now for compatibility.
-def: F<"detect-odr-violations">;
def: Flag<["-"], "d">;
def: Flag<["-"], "g">;
def: F<"long-plt">;
diff --git a/lld/test/ELF/silent-ignore.test b/lld/test/ELF/silent-ignore.test
index c3c1c276c5078..85197b5ff6d2d 100644
--- a/lld/test/ELF/silent-ignore.test
+++ b/lld/test/ELF/silent-ignore.test
@@ -1,6 +1,5 @@
RUN: ld.lld --version \
RUN: -d \
-RUN: -detect-odr-violations \
RUN: -g \
RUN: -long-plt \
RUN: --no-add-needed \
More information about the llvm-commits
mailing list