[ELF] Use MapVector.

Order is still deterministic and we dont need a sorted order.

llvm-svn: 232863
This commit is contained in:
Shankar Easwaran 2015-03-20 23:46:58 +00:00
parent 208ac3d6e5
commit 1f869d0e1a
1 changed files with 2 additions and 1 deletions

View File

@ -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;