[lld] r243534 - ELF2: Use DenseMap instead of std::map for a symbol table.
Rui Ueyama
ruiu at google.com
Wed Jul 29 09:30:40 PDT 2015
Author: ruiu
Date: Wed Jul 29 11:30:40 2015
New Revision: 243534
URL: http://llvm.org/viewvc/llvm-project?rev=243534&view=rev
Log:
ELF2: Use DenseMap instead of std::map for a symbol table.
We use DenseMap for COFF too.
Modified:
lld/trunk/ELF/SymbolTable.h
Modified: lld/trunk/ELF/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.h?rev=243534&r1=243533&r2=243534&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.h (original)
+++ lld/trunk/ELF/SymbolTable.h Wed Jul 29 11:30:40 2015
@@ -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;
};
More information about the llvm-commits
mailing list