From f388243037791e6e7e7be9b9c020a3ed1fe86d49 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 18 Jul 2013 23:15:50 +0000 Subject: Revert "COFFDumper: Dump data directory entries." Because it broke s390x and ppc64-linux buildbots. This reverts commit r186623. llvm-svn: 186627 --- llvm/tools/llvm-readobj/COFFDumper.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'llvm/tools') diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp index 2f309e30ec2..1ceb8fcd316 100644 --- a/llvm/tools/llvm-readobj/COFFDumper.cpp +++ b/llvm/tools/llvm-readobj/COFFDumper.cpp @@ -60,8 +60,6 @@ private: void printRelocation(section_iterator SecI, relocation_iterator RelI); - void printDataDirectory(uint32_t Index, const std::string &FieldName); - void printX64UnwindInfo(); void printRuntimeFunction( @@ -562,14 +560,6 @@ void COFFDumper::cacheRelocations() { } } -void COFFDumper::printDataDirectory(uint32_t Index, const std::string &FieldName) { - const data_directory *Data; - if (Obj->getDataDirectory(Index, Data)) - return; - W.printHex(FieldName + "RVA", Data->RelativeVirtualAddress); - W.printHex(FieldName + "Size", Data->Size); -} - void COFFDumper::printFileHeaders() { // Print COFF header const coff_file_header *COFFHeader = 0; @@ -631,20 +621,6 @@ void COFFDumper::printFileHeaders() { W.printNumber("SizeOfHeapReserve", PEHeader->SizeOfHeapReserve); W.printNumber("SizeOfHeapCommit", PEHeader->SizeOfHeapCommit); W.printNumber("NumberOfRvaAndSize", PEHeader->NumberOfRvaAndSize); - - if (PEHeader->NumberOfRvaAndSize > 0) { - DictScope D(W, "DataDirectory"); - static const char * const directory[] = { - "ExportTable", "ImportTable", "ResourceTable", "ExceptionTable", - "CertificateTable", "BaseRelocationTable", "Debug", "Architecture", - "GlobalPtr", "TLSTable", "LoadConfigTable", "BoundImport", "IAT", - "DelayImportDescriptor", "CLRRuntimeHeader", "Reserved" - }; - - for (uint32_t i = 0; i < PEHeader->NumberOfRvaAndSize; ++i) { - printDataDirectory(i, directory[i]); - } - } } } -- cgit v1.2.3