[PATCH] D86911: [llvm-dwarfdump][test] Generate the DWARF sections from the DWARF mapping key.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 23:37:52 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, cmtice, aprantl.
Herald added a project: LLVM.
Higuoxing requested review of this revision.

yaml2elf now supports generating DWARF sections from the DWARF mapping
key. We can use it to simplify some tests. Besides, the debug-str.yaml
is moved into the X86/ folder.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86911

Files:
  llvm/test/tools/llvm-dwarfdump/X86/debug-str.yaml
  llvm/test/tools/llvm-dwarfdump/debug-str.yaml


Index: llvm/test/tools/llvm-dwarfdump/X86/debug-str.yaml
===================================================================
--- llvm/test/tools/llvm-dwarfdump/X86/debug-str.yaml
+++ llvm/test/tools/llvm-dwarfdump/X86/debug-str.yaml
@@ -16,7 +16,8 @@
   Data:    ELFDATA2LSB
   Type:    ET_REL
   Machine: EM_X86_64
-Sections:
-  - Name: .debug_str
-    Type: SHT_PROGBITS
-    Content: '736f6d6520737472696e6700666f6f0000' ## "some string\0foo\0\0"
+DWARF:
+  debug_str:
+    - "some string"
+    - "foo"
+    - ""


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86911.289082.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200901/6f6e3d60/attachment.bin>


More information about the llvm-commits mailing list