summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-07-18 23:15:50 +0000
committerRui Ueyama <ruiu@google.com>2013-07-18 23:15:50 +0000
commit9d1359453fc5db2ff9fb334fe205a14c30ed244d (patch)
treeebadcfa3caef0171b73c5689b73178a8cda6dd74 /tools/llvm-readobj
parentcf2ab764db006078856312d9cfdf29d8fe59c3dd (diff)
downloadllvm-9d1359453fc5db2ff9fb334fe205a14c30ed244d.tar.gz
llvm-9d1359453fc5db2ff9fb334fe205a14c30ed244d.tar.bz2
llvm-9d1359453fc5db2ff9fb334fe205a14c30ed244d.tar.xz
Revert "COFFDumper: Dump data directory entries."
Because it broke s390x and ppc64-linux buildbots. This reverts commit r186623. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj')
-rw-r--r--tools/llvm-readobj/COFFDumper.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp
index 2f309e30ec..1ceb8fcd31 100644
--- a/tools/llvm-readobj/COFFDumper.cpp
+++ b/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]);
- }
- }
}
}