[llvm] [DirectX] Add ObjectFile boilerplate for objdump (PR #151434)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 06:07:52 PDT 2025
================
@@ -0,0 +1,58 @@
+# RUN: yaml2obj %s -o %t
+# RUN: llvm-objdump -h %t | FileCheck %s --check-prefix=HEADERS
+# RUN: llvm-objdump -s %t | FileCheck %s --check-prefix=CONTENTS
+
+#HEADERS: Idx Name Size VMA Type
+#HEADERS-NEXT: 0 FKE0 00000008 0000003c
+#HEADERS-NEXT: 1 FKE1 00000008 0000004c
+#HEADERS-NEXT: 2 FKE2 00000008 0000005c
+#HEADERS-NEXT: 3 FKE3 00000078 0000006c
+#HEADERS-NEXT: 4 FKE4 00000698 000000ec
+#HEADERS-NEXT: 5 FKE5 00000014 0000078c
+#HEADERS-NEXT: 6 DXIL 0000001c 000007a8
+
+#CONTENTS: Contents of section FKE0:
----------------
llvm-beanz wrote:
I'll add the first line of each section to the test (which for the smaller sections will be everything). Since they're not known named sections with data that the YAML represents, the encoder just fills them with 0's.
https://github.com/llvm/llvm-project/pull/151434
More information about the llvm-commits
mailing list