diff options
author | Fangrui Song <maskray@google.com> | 2020-05-04 14:42:36 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-05-08 07:37:06 -0700 |
commit | e20a215992dc685ed843b1023143f914edbb1211 (patch) | |
tree | d01e3de49d4c4b5b08262bbc6bfa8b763ee34a0e /lldb/unittests/ScriptInterpreter/Python | |
parent | 97828928eea41d329d00f77406dbc339d62c17c7 (diff) | |
download | llvm-e20a215992dc685ed843b1023143f914edbb1211.zip llvm-e20a215992dc685ed843b1023143f914edbb1211.tar.gz llvm-e20a215992dc685ed843b1023143f914edbb1211.tar.bz2 |
[ELF] Add convenience TableGen classes to enforce two dashes for options not supported by GNU ld
Announced on https://lists.llvm.org/pipermail/llvm-dev/2020-May/141416.html
For many options, we have to support either one or two dash to be
compatible with GNU ld. For newer and lld specific options, we can enforce strict double dashes.
Affected options:
* --thinlto-*
* --lto-*
* --shuffle-sections=
This patch does not change `-plugin-opt=*` because clang driver passes
`-plugin-opt=*` and I don't intend to cause churn.
In 2000, GNU ld tried something similar with --omagic
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=e4897a3288f37d5f69e8acd256a6e83e607fe8d8
Reviewed By: tejohnson, psmith
Differential Revision: https://reviews.llvm.org/D79371
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions