[lld] 5aef8ab - [lld,NFC] Fix stale comments related to config->

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 23:06:39 PST 2025


Author: Fangrui Song
Date: 2025-01-06T23:06:33-08:00
New Revision: 5aef8ab6ec3a5bcb224fee764bbc6914a76d7dbb

URL: https://github.com/llvm/llvm-project/commit/5aef8ab6ec3a5bcb224fee764bbc6914a76d7dbb
DIFF: https://github.com/llvm/llvm-project/commit/5aef8ab6ec3a5bcb224fee764bbc6914a76d7dbb.diff

LOG: [lld,NFC] Fix stale comments related to config->

Added: 
    

Modified: 
    lld/COFF/Driver.h
    lld/ELF/SymbolTable.cpp

Removed: 
    


################################################################################
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.


        


More information about the llvm-commits mailing list