[ELF] AArch64ErrataFix: replace std::map with DenseMap. NFC
authorFangrui Song <i@maskray.me>
Tue, 8 Feb 2022 06:02:25 +0000 (22:02 -0800)
committerFangrui Song <i@maskray.me>
Tue, 8 Feb 2022 06:02:25 +0000 (22:02 -0800)
There is now no <map> in lld/ELF.

lld/ELF/AArch64ErrataFix.h

index dfe57b9..14baeae 100644 (file)
@@ -10,7 +10,7 @@
 #define LLD_ELF_AARCH64ERRATAFIX_H
 
 #include "lld/Common/LLVM.h"
-#include <map>
+#include "llvm/ADT/DenseMap.h"
 #include <vector>
 
 namespace lld {
@@ -39,7 +39,7 @@ private:
   // A cache of the mapping symbols defined by the InputSection sorted in order
   // of ascending value with redundant symbols removed. These describe
   // the ranges of code and data in an executable InputSection.
-  std::map<InputSection *, std::vector<const Defined *>> sectionMap;
+  llvm::DenseMap<InputSection *, std::vector<const Defined *>> sectionMap;
 
   bool initialized = false;
 };