[PATCH] D34836: [llvm-readobj] Include the PE magic value in printouts
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 30 00:02:24 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL306794: [llvm-readobj] Include the PE magic value in printouts (authored by mstorsjo).
Changed prior to commit:
https://reviews.llvm.org/D34836?vs=104740&id=104825#toc
Repository:
rL LLVM
https://reviews.llvm.org/D34836
Files:
llvm/trunk/test/tools/llvm-readobj/file-headers.test
llvm/trunk/test/tools/llvm-readobj/peplus.test
llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
Index: llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
===================================================================
--- llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
+++ llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
@@ -678,6 +678,7 @@
template <class PEHeader>
void COFFDumper::printPEHeader(const PEHeader *Hdr) {
DictScope D(W, "ImageOptionalHeader");
+ W.printHex ("Magic", Hdr->Magic);
W.printNumber("MajorLinkerVersion", Hdr->MajorLinkerVersion);
W.printNumber("MinorLinkerVersion", Hdr->MinorLinkerVersion);
W.printNumber("SizeOfCode", Hdr->SizeOfCode);
Index: llvm/trunk/test/tools/llvm-readobj/peplus.test
===================================================================
--- llvm/trunk/test/tools/llvm-readobj/peplus.test
+++ llvm/trunk/test/tools/llvm-readobj/peplus.test
@@ -16,6 +16,7 @@
CHECK: ]
CHECK: }
CHECK: ImageOptionalHeader {
+CHECK: Magic: 0x20B
CHECK: MajorLinkerVersion: 11
CHECK: MinorLinkerVersion: 0
CHECK: SizeOfCode: 512
Index: llvm/trunk/test/tools/llvm-readobj/file-headers.test
===================================================================
--- llvm/trunk/test/tools/llvm-readobj/file-headers.test
+++ llvm/trunk/test/tools/llvm-readobj/file-headers.test
@@ -238,6 +238,7 @@
PE32-NEXT: ]
PE32-NEXT: }
PE32-NEXT: ImageOptionalHeader {
+PE32-NEXT: Magic: 0x10B
PE32-NEXT: MajorLinkerVersion: 11
PE32-NEXT: MinorLinkerVersion: 0
PE32-NEXT: SizeOfCode: 512
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34836.104825.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170630/1839d52f/attachment.bin>
More information about the llvm-commits
mailing list