forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit completes the work that eliminates global variables like config/target/inputSections/symTab from lld/ELF. Key changes: * Introduced `lld::elf::ctx` to encapsulate global state. * Moved global variables into `Ctx lld::elf::ctx` * Updated many functions to accept `Ctx &ctx` * Made `ctx` a local variable (this commit) If we don't count `static std::mutex`, this is the last major global state within lld/ELF (minor ones like `SharedFile::vernauxNum` (33ff9e4) might not all be eliminated yet).
- Loading branch information
Showing
3 changed files
with
1 addition
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters