Remove a typedef that is used only once.
authorRui Ueyama <ruiu@google.com>
Thu, 22 Dec 2016 04:40:56 +0000 (04:40 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 22 Dec 2016 04:40:56 +0000 (04:40 +0000)
llvm-svn: 290318

lld/ELF/SymbolTable.h

index 0c4b42d..d03f2f7 100644 (file)
@@ -22,8 +22,6 @@ class Lazy;
 class OutputSectionBase;
 struct Symbol;
 
-typedef llvm::CachedHashStringRef SymName;
-
 // SymbolTable is a bucket of all known symbols, including defined,
 // undefined, or lazy symbols (the last one is symbols in archive
 // files whose archive members are not yet loaded).
@@ -118,7 +116,7 @@ private:
   // but a bit inefficient.
   // FIXME: Experiment with passing in a custom hashing or sorting the symbols
   // once symbol resolution is finished.
-  llvm::DenseMap<SymName, SymIndex> Symtab;
+  llvm::DenseMap<llvm::CachedHashStringRef, SymIndex> Symtab;
   std::vector<Symbol *> SymVector;
 
   // Comdat groups define "link once" sections. If two comdat groups have the