ELF2: Use DenseMap instead of std::map for a symbol table.

We use DenseMap for COFF too.

llvm-svn: 243534
This commit is contained in:
Rui Ueyama 2015-07-29 16:30:40 +00:00
parent ca577fd536
commit b4731a5847
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@
#define LLD_ELF_SYMBOL_TABLE_H
#include "InputFiles.h"
#include <unordered_map>
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseMapInfo.h"
namespace lld {
namespace elf2 {
@ -48,7 +49,7 @@ private:
void resolve(SymbolBody *Body);
std::unordered_map<StringRef, Symbol *> Symtab;
llvm::DenseMap<StringRef, Symbol *> Symtab;
llvm::BumpPtrAllocator Alloc;
};