[PATCH] D85405: [obj2yaml] Test dumping an empty .debug_aranges section.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 05:40:54 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6616d84ceed9: [obj2yaml] Test dumping an empty .debug_aranges section. (authored by Higuoxing).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85405/new/
https://reviews.llvm.org/D85405
Files:
llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
Index: llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
===================================================================
--- llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
+++ llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
@@ -170,3 +170,20 @@
- Length: 0x1234
Version: 2
CuOffset: 0x1234
+
+## e) Test dumping an empty .debug_aranges section.
+
+# RUN: yaml2obj --docnum=5 %s | obj2yaml | FileCheck %s --check-prefix=EMPTY-CONTENT
+
+# EMPTY-CONTENT: DWARF:
+# EMPTY-CONTENT-NEXT: debug_aranges: []
+# EMPTY-CONTENT-NEXT: ...
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_EXEC
+ Machine: EM_X86_64
+DWARF:
+ debug_aranges: []
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85405.283581.patch
Type: text/x-patch
Size: 723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/3effd6aa/attachment-0001.bin>
More information about the llvm-commits
mailing list