[llvm] 6616d84 - [obj2yaml] Test dumping an empty .debug_aranges section.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 05:40:37 PDT 2020
Author: Xing GUO
Date: 2020-08-06T20:40:12+08:00
New Revision: 6616d84ceed9869a8044c590ff12865ef2ea74d6
URL: https://github.com/llvm/llvm-project/commit/6616d84ceed9869a8044c590ff12865ef2ea74d6
DIFF: https://github.com/llvm/llvm-project/commit/6616d84ceed9869a8044c590ff12865ef2ea74d6.diff
LOG: [obj2yaml] Test dumping an empty .debug_aranges section.
This patch adds one test case that tests dumping an empty .debug_aranges
section.
Reviewed By: jhenderson, grimar
Differential Revision: https://reviews.llvm.org/D85405
Added:
Modified:
llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
Removed:
################################################################################
diff --git a/llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml b/llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
index 39ee4baa97fe..95abc4e03d33 100644
--- a/llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
+++ b/llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
@@ -170,3 +170,20 @@ DWARF:
- 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: []
More information about the llvm-commits
mailing list