Skip to content

Commit 5aef8ab

Browse files
committed
[lld,NFC] Fix stale comments related to config->
1 parent 8d2e611 commit 5aef8ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lld/COFF/Driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class LinkerDriver {
112112
void detectWinSysRoot(const llvm::opt::InputArgList &args);
113113

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

118118
// Symbol names are mangled by prepending "_" on x86.

lld/ELF/SymbolTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void SymbolTable::scanVersionScript() {
318318
// script with `global: *` are used.
319319
//
320320
// '--retain-symbol-file' adds a "*" pattern to
321-
// 'config->versionDefinitions[VER_NDX_LOCAL].nonLocalPatterns', see
321+
// 'versionDefinitions[VER_NDX_LOCAL].nonLocalPatterns', see
322322
// 'readConfigs()' in 'Driver.cpp'. Note that it is not '.localPatterns',
323323
// and may seem counterintuitive, but still works as expected. Here we can
324324
// exploit that and skip analyzing the pattern added for this option.

0 commit comments

Comments
 (0)