COFF: Remove dead code.
authorRui Ueyama <ruiu@google.com>
Fri, 26 Jun 2015 22:14:41 +0000 (22:14 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 26 Jun 2015 22:14:41 +0000 (22:14 +0000)
llvm-svn: 240846

lld/COFF/SymbolTable.cpp
lld/COFF/SymbolTable.h

index 054aa11..7515780 100644 (file)
@@ -228,15 +228,6 @@ std::error_code SymbolTable::rename(StringRef From, StringRef To) {
   return std::error_code();
 }
 
-void SymbolTable::dump() {
-  for (auto &P : Symtab) {
-    Symbol *Ref = P.second;
-    if (auto *Body = dyn_cast<Defined>(Ref->Body))
-      llvm::dbgs() << Twine::utohexstr(Config->ImageBase + Body->getRVA())
-                   << " " << Body->getName() << "\n";
-  }
-}
-
 void SymbolTable::printMap(llvm::raw_ostream &OS) {
   for (ObjectFile *File : ObjectFiles) {
     OS << File->getShortName() << ":\n";
index d96401a..d7eed04 100644 (file)
@@ -60,9 +60,6 @@ public:
   // entry point name.
   ErrorOr<StringRef> findDefaultEntry();
 
-  // Dump contents of the symbol table to stderr.
-  void dump();
-
   // Print a layout map to OS.
   void printMap(llvm::raw_ostream &OS);