[llvm-branch-commits] [lld] 6ed1460 - [COFF] Change a llvm::StringSet<> to llvm::DenseSet<StringRef>. NFC

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 11 23:37:16 PDT 2022


Author: Fangrui Song
Date: 2022-08-12T08:36:08+02:00
New Revision: 6ed14602c3d4b3c7e3de8eeae2a656ae9982e877

URL: https://github.com/llvm/llvm-project/commit/6ed14602c3d4b3c7e3de8eeae2a656ae9982e877
DIFF: https://github.com/llvm/llvm-project/commit/6ed14602c3d4b3c7e3de8eeae2a656ae9982e877.diff

LOG: [COFF] Change a llvm::StringSet<> to llvm::DenseSet<StringRef>. NFC

The former stores strings and is therefore more expensive.

(cherry picked from commit dfe2a3f3eb92b6a94453a74f3f0a4552f6965fcc)

Added: 
    

Modified: 
    lld/COFF/Driver.h

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Driver.h b/lld/COFF/Driver.h
index 162517340e80b..955ec200da7dc 100644
--- a/lld/COFF/Driver.h
+++ b/lld/COFF/Driver.h
@@ -159,7 +159,7 @@ class LinkerDriver {
   std::vector<StringRef> filePaths;
   std::vector<MemoryBufferRef> resources;
 
-  llvm::StringSet<> directivesExports;
+  llvm::DenseSet<StringRef> directivesExports;
 
   COFFLinkerContext &ctx;
 


        


More information about the llvm-branch-commits mailing list