diff options
author | Rui Ueyama <ruiu@google.com> | 2013-07-18 23:15:50 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-07-18 23:15:50 +0000 |
commit | f388243037791e6e7e7be9b9c020a3ed1fe86d49 (patch) | |
tree | 4a9d667283b4aae9bc8a6c8fd505ba251e5dff45 /llvm/tools | |
parent | a121053471dab3cba01f3a156a0133d4b05c6a25 (diff) | |
download | bcm5719-llvm-f388243037791e6e7e7be9b9c020a3ed1fe86d49.tar.gz bcm5719-llvm-f388243037791e6e7e7be9b9c020a3ed1fe86d49.zip |
Revert "COFFDumper: Dump data directory entries."
Because it broke s390x and ppc64-linux buildbots. This reverts commit r186623.
llvm-svn: 186627
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-readobj/COFFDumper.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
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]); - } - } } } |