llvm-capstone/lld/COFF
Justin Bogner dcb6d212fd Reapply "[Option] Add "Visibility" field and clone the OptTable APIs to use it"
This reverts commit 4e3b89483a, with
fixes for places I'd missed updating in lld and lldb. I've also
renamed OptionVisibility::Default to "DefaultVis" to avoid ambiguity
since the undecorated name has to be available anywhere Options.inc is
included.

Original message follows:

This splits OptTable's "Flags" field into "Flags" and "Visibility",
updates the places where we instantiate Option tables, and adds
variants of the OptTable APIs that use Visibility mask instead of
Include/Exclude flags.

We need to do this to clean up a bunch of complexity in the clang
driver's option handling - there's a whole slew of flags like
CoreOption, NoDriverOption, and FlangOnlyOption there today to try to
handle all of the permutations of flags that the various drivers need,
but it really doesn't scale well, as can be seen by things like the
somewhat recently introduced CLDXCOption.

Instead, we'll provide an additive model for visibility that's
separate from the other flags. For things like "HelpHidden", which is
used as a "subtractive" modifier for option visibility, we leave that
in "Flags" and handle it as a special case.

Note that we don't actually update the users of the Include/Exclude
APIs here or change the flags that exist in clang at all - that will
come in a follow up that refactors clang's Options.td to use the
increased flexibility this change allows.

Differential Revision: https://reviews.llvm.org/D157149
2023-08-15 01:16:58 -07:00
..
CallGraphSort.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
CallGraphSort.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
Chunks.cpp [LLD] [COFF] Warn about pseudo relocations that are too narrow 2023-07-11 23:43:34 +03:00
Chunks.h [lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC 2023-06-05 14:36:19 -07:00
CMakeLists.txt [Support] Move TargetParsers to new component 2022-12-20 11:05:50 +00:00
COFFLinkerContext.cpp [lld][COFF] Fix bug causing assertion in Chunk::setAlignment 2023-01-10 14:19:53 +00:00
COFFLinkerContext.h [lld][COFF] Fix bug causing assertion in Chunk::setAlignment 2023-01-10 14:19:53 +00:00
Config.h [lld] [NFC] Use llvm::COFF::is64Bit in is64. 2023-07-28 14:20:14 +02:00
DebugTypes.cpp [llvm] Add missing StringExtras.h includes 2023-06-25 15:42:22 +01:00
DebugTypes.h [LLD][COFF] Survive empty and invalid PCH signature 2022-11-20 10:40:50 -05:00
DLL.cpp [LLD][COFF] Allow overwriting directives exports with cmd-line exports 2023-06-13 15:29:46 -04:00
DLL.h [lld][COFF] Provide unwinding information for Chunk injected by /delayloaded 2023-01-16 18:39:21 +01:00
Driver.cpp [LLD][COFF] Add LLVM toolchain library paths by default. 2023-07-14 14:37:24 +02:00
Driver.h [llvm] Extract common OptTable bits into macros 2023-08-04 13:57:13 -07:00
DriverUtils.cpp Reapply "[Option] Add "Visibility" field and clone the OptTable APIs to use it" 2023-08-15 01:16:58 -07:00
ICF.cpp [COFF] Switch to xxh3_64bits 2023-07-19 14:08:14 -07:00
ICF.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
InputFiles.cpp [lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC 2023-06-05 14:36:19 -07:00
InputFiles.h [LLD] Do not assume /guard:cf always set together with /guard:ehcont 2023-05-16 23:12:03 +08:00
LLDMapFile.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
LLDMapFile.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
LTO.cpp [lld/COFF] Add /dwodir to enable DWARF fission with LTO 2023-07-01 08:59:12 +08:00
LTO.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
MapFile.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
MapFile.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
MarkLive.cpp [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
MarkLive.h [lld/win] Use C++17 nested namespace syntax in most places 2022-08-08 11:48:12 -04:00
MinGW.cpp [lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC 2023-06-05 14:36:19 -07:00
MinGW.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
Options.td [lld][COFF] Add -print-search-paths for debugging. 2023-07-13 10:52:57 +02:00
PDB.cpp [lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC 2023-06-05 14:36:19 -07:00
PDB.h [COFF] Change most Optional to std::optional 2022-11-27 16:39:40 -08:00
README.md
Symbols.cpp reland: [Demangle] make llvm::demangle take std::string_view rather than const std::string& 2023-06-06 10:18:06 -07:00
Symbols.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
SymbolTable.cpp [lld] StringRef::{starts,ends}with => {starts,ends}_with. NFC 2023-06-05 14:36:19 -07:00
SymbolTable.h [lld] Remove unused forward declarations for DefinedRelative 2023-06-14 22:04:41 -07:00
TypeMerger.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00
Writer.cpp [lld][COFF] Remove incorrect flag from EHcont table 2023-08-10 16:17:38 -04:00
Writer.h [LLD] Remove global state in lld/COFF 2023-01-09 23:39:30 -05:00

See docs/NewLLD.rst