From 5aef8ab6ec3a5bcb224fee764bbc6914a76d7dbb Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 6 Jan 2025 23:06:33 -0800 Subject: [PATCH] [lld,NFC] Fix stale comments related to config-> --- lld/COFF/Driver.h | 2 +- lld/ELF/SymbolTable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/COFF/Driver.h b/lld/COFF/Driver.h index b04a00e2d1cd1d..51325689042981 100644 --- a/lld/COFF/Driver.h +++ b/lld/COFF/Driver.h @@ -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. diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index d5b2200b502279..975700505facb4 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -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.