[lld] f237ab0 - [ELF] AArch64ErrataFix: replace std::map with DenseMap. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 7 22:02:31 PST 2022
Author: Fangrui Song
Date: 2022-02-07T22:02:25-08:00
New Revision: f237ab0dd169bdf8b2eda03ab4094ba1a572b6a0
URL: https://github.com/llvm/llvm-project/commit/f237ab0dd169bdf8b2eda03ab4094ba1a572b6a0
DIFF: https://github.com/llvm/llvm-project/commit/f237ab0dd169bdf8b2eda03ab4094ba1a572b6a0.diff
LOG: [ELF] AArch64ErrataFix: replace std::map with DenseMap. NFC
There is now no <map> in lld/ELF.
Added:
Modified:
lld/ELF/AArch64ErrataFix.h
Removed:
################################################################################
diff --git a/lld/ELF/AArch64ErrataFix.h b/lld/ELF/AArch64ErrataFix.h
index dfe57b95dd99..14baeaee8ef0 100644
--- a/lld/ELF/AArch64ErrataFix.h
+++ b/lld/ELF/AArch64ErrataFix.h
@@ -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 @@ class AArch64Err843419Patcher {
// 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;
};
More information about the llvm-commits
mailing list