OSDN Git Service

[ELF] Rename --[no-]lto-new-pass-manager to --[no-]lto-legacy-pass-manager
authorFangrui Song <i@maskray.me>
Thu, 10 Dec 2020 01:53:37 +0000 (17:53 -0800)
committerFangrui Song <i@maskray.me>
Thu, 10 Dec 2020 01:53:37 +0000 (17:53 -0800)
commit7d38861ce300a8e19eacbf92e63ea7a4c43ec1c9
treecf097a06fe093af6cf1f9a41065e54508a2a544f
parentcc15e75ce8ee5aff87fd129f748e2a9899a76b8b
[ELF] Rename --[no-]lto-new-pass-manager to --[no-]lto-legacy-pass-manager

Normally we should not delete options. However, the Clang driver passes
`-plugin-opt={new,legacy}-pass-manager` instead of
`--[no-]lto-legacy-pass-manager` (`-plugin-opt=new-pass-manager` has been used
since 7.0), and it is unlikely anyone will use the `--lto-*` style options directly.

So let's rename them to be consistent with the Clang driver option names.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D92988
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/test/ELF/lto/new-pass-manager.ll
lld/test/ELF/lto/verify-invalid.ll