Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lld/COFF
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-06-27 01:14:41 +0300
committerRui Ueyama <ruiu@google.com>2015-06-27 01:14:41 +0300
commit81ba1353ce8d9229e15014a7f060cc5e1572a5aa (patch)
treefe7bc88a83aa08cd0522fdd9963adcd0861c0a4c /lld/COFF
parentf48e982706c1e40ae1d2321e55a9595c1a16cfe1 (diff)
COFF: Remove dead code.
llvm-svn: 240846
Diffstat (limited to 'lld/COFF')
-rw-r--r--lld/COFF/SymbolTable.cpp9
-rw-r--r--lld/COFF/SymbolTable.h3
2 files changed, 0 insertions, 12 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp
index 054aa1179381..75157805d074 100644
--- a/lld/COFF/SymbolTable.cpp
+++ b/lld/COFF/SymbolTable.cpp
@@ -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";
diff --git a/lld/COFF/SymbolTable.h b/lld/COFF/SymbolTable.h
index d96401a8e24f..d7eed04eea0b 100644
--- a/lld/COFF/SymbolTable.h
+++ b/lld/COFF/SymbolTable.h
@@ -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);