Skip to content

Commit

Permalink
[lld,NFC] Fix stale comments related to config->
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jan 7, 2025
1 parent 8d2e611 commit 5aef8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lld/COFF/Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class LinkerDriver {
void detectWinSysRoot(const llvm::opt::InputArgList &args);

// Adds various search paths based on the sysroot. Must only be called once
// config->machine has been set.
// config.machine has been set.
void addWinSysRootLibSearchPaths();

// Symbol names are mangled by prepending "_" on x86.
Expand Down
2 changes: 1 addition & 1 deletion lld/ELF/SymbolTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void SymbolTable::scanVersionScript() {
// script with `global: *` are used.
//
// '--retain-symbol-file' adds a "*" pattern to
// 'config->versionDefinitions[VER_NDX_LOCAL].nonLocalPatterns', see
// 'versionDefinitions[VER_NDX_LOCAL].nonLocalPatterns', see
// 'readConfigs()' in 'Driver.cpp'. Note that it is not '.localPatterns',
// and may seem counterintuitive, but still works as expected. Here we can
// exploit that and skip analyzing the pattern added for this option.
Expand Down

0 comments on commit 5aef8ab

Please sign in to comment.