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";
// 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);