[PATCH] D67357: [llvm-objdump] Fix llvm-objdump --all-headers output order
Justice Adams via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 15:52:46 PDT 2019
justice_adams updated this revision to Diff 219619.
justice_adams added a comment.
Restored check-empty check as suggested by @ychen
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67357/new/
https://reviews.llvm.org/D67357
Files:
llvm/test/tools/llvm-objdump/all-headers.test
llvm/tools/llvm-objdump/llvm-objdump.cpp
Index: llvm/tools/llvm-objdump/llvm-objdump.cpp
===================================================================
--- llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -2087,6 +2087,8 @@
printRelocations(O);
if (DynamicRelocations)
printDynamicRelocations(O);
+ if (PrivateHeaders || FirstPrivateHeader)
+ printPrivateFileHeaders(O, FirstPrivateHeader);
if (SectionHeaders)
printSectionHeaders(O);
if (SectionContents)
@@ -2095,8 +2097,6 @@
printSymbolTable(O, ArchiveName);
if (UnwindInfo)
printUnwindInfo(O);
- if (PrivateHeaders || FirstPrivateHeader)
- printPrivateFileHeaders(O, FirstPrivateHeader);
if (ExportsTrie)
printExportsTrie(O);
if (Rebase)
Index: llvm/test/tools/llvm-objdump/all-headers.test
===================================================================
--- llvm/test/tools/llvm-objdump/all-headers.test
+++ llvm/test/tools/llvm-objdump/all-headers.test
@@ -9,10 +9,10 @@
# CHECK-NEXT: architecture: x86_64
# CHECK-NEXT: start address: 0x0000000000000000
# CHECK-EMPTY:
-# CHECK-NEXT: Sections:
-# CHECK: SYMBOL TABLE:
# CHECK: Program Header:
# CHECK: Dynamic Section:
+# CHECK: Sections:
+# CHECK: SYMBOL TABLE:
## Check how we dump the archives.
## Check we dump the appropriate headers for each file in the archive.
@@ -26,18 +26,18 @@
# ARCHIVE: architecture: x86_64
# ARCHIVE: start address: 0x0000000000000000
# ARCHIVE: rw-r--r--
-# ARCHIVE: Sections:
-# ARCHIVE: SYMBOL TABLE:
# ARCHIVE: Program Header:
# ARCHIVE: Dynamic Section:
+# ARCHIVE: Sections:
+# ARCHIVE: SYMBOL TABLE:
# ARCHIVE: {{.*}}.a({{.*}}2): file format ELF64-x86-64
# ARCHIVE: architecture: x86_64
# ARCHIVE: start address: 0x0000000000000000
# ARCHIVE: rw-r--r--
-# ARCHIVE: Sections:
-# ARCHIVE: SYMBOL TABLE:
# ARCHIVE: Program Header:
# ARCHIVE: Dynamic Section:
+# ARCHIVE: Sections:
+# ARCHIVE: SYMBOL TABLE:
!ELF
FileHeader:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67357.219619.patch
Type: text/x-patch
Size: 1959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190910/966c52ca/attachment.bin>
More information about the llvm-commits
mailing list