diff options
author | Shankar Easwaran <shankare@codeaurora.org> | 2015-03-20 23:46:58 +0000 |
---|---|---|
committer | Shankar Easwaran <shankare@codeaurora.org> | 2015-03-20 23:46:58 +0000 |
commit | 1f869d0e1a90f5a4717ded890396a66d4dc5923f (patch) | |
tree | af241c897f44464a85fe22e74c14dd59e81a1d66 | |
parent | 208ac3d6e5021dc516da786cf4076fbb1f0a5097 (diff) | |
download | bcm5719-llvm-1f869d0e1a90f5a4717ded890396a66d4dc5923f.tar.gz bcm5719-llvm-1f869d0e1a90f5a4717ded890396a66d4dc5923f.zip |
[ELF] Use MapVector.
Order is still deterministic and we dont need a sorted order.
llvm-svn: 232863
-rw-r--r-- | lld/lib/ReaderWriter/ELF/ELFFile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h index bd4fa832261..11f4ee4fc63 100644 --- a/lld/lib/ReaderWriter/ELF/ELFFile.h +++ b/lld/lib/ReaderWriter/ELF/ELFFile.h @@ -11,6 +11,7 @@ #define LLD_READER_WRITER_ELF_FILE_H #include "Atoms.h" +#include <llvm/ADT/MapVector.h> #include <map> #include <unordered_map> @@ -408,7 +409,7 @@ protected: /// \brief the section and the symbols that are contained within it to create /// used to create atoms - std::map<const Elf_Shdr *, std::vector<Elf_Sym_Iter>> _sectionSymbols; + llvm::MapVector<const Elf_Shdr *, std::vector<Elf_Sym_Iter>> _sectionSymbols; /// \brief Sections that have merge string property std::vector<const Elf_Shdr *> _mergeStringSections; |