[lld] dfe2a3f - [COFF] Change a llvm::StringSet<> to llvm::DenseSet<StringRef>. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 9 17:50:48 PDT 2022
Author: Fangrui Song
Date: 2022-08-09T17:50:42-07:00
New Revision: dfe2a3f3eb92b6a94453a74f3f0a4552f6965fcc
URL: https://github.com/llvm/llvm-project/commit/dfe2a3f3eb92b6a94453a74f3f0a4552f6965fcc
DIFF: https://github.com/llvm/llvm-project/commit/dfe2a3f3eb92b6a94453a74f3f0a4552f6965fcc.diff
LOG: [COFF] Change a llvm::StringSet<> to llvm::DenseSet<StringRef>. NFC
The former stores strings and is therefore more expensive.
Added:
Modified:
lld/COFF/Driver.h
Removed:
################################################################################
diff --git a/lld/COFF/Driver.h b/lld/COFF/Driver.h
index 64334ad1d982c..902f122d4ade3 100644
--- a/lld/COFF/Driver.h
+++ b/lld/COFF/Driver.h
@@ -158,7 +158,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-commits
mailing list