From 7bc1b28291d6fb60cd055c375a1a94fb6ba7c832 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 11 Sep 2017 22:59:45 +0000 Subject: llvm-dwarfdump: Replace -debug-dump=sect option with individual options. As discussed on llvm-dev in http://lists.llvm.org/pipermail/llvm-dev/2017-September/117301.html this changes the command line interface of llvm-dwarfdump to match the one used by the dwarfdump utility shipping on macOS. In addition to being shorter to type this format also has the advantage of allowing more than one section to be specified at the same time. In a nutshell, with this change $ llvm-dwarfdump --debug-dump=info $ llvm-dwarfdump --debug-dump=apple-objc becomes $ dwarfdump --debug-info --apple-objc Differential Revision: https://reviews.llvm.org/D37714 llvm-svn: 312970 --- llvm/test/tools/llvm-dwarfdump/X86/multiple-sections.test | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 llvm/test/tools/llvm-dwarfdump/X86/multiple-sections.test (limited to 'llvm/test/tools/llvm-dwarfdump/X86/multiple-sections.test') diff --git a/llvm/test/tools/llvm-dwarfdump/X86/multiple-sections.test b/llvm/test/tools/llvm-dwarfdump/X86/multiple-sections.test new file mode 100644 index 00000000000..9667ae95c6a --- /dev/null +++ b/llvm/test/tools/llvm-dwarfdump/X86/multiple-sections.test @@ -0,0 +1,9 @@ +# RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ +# RUN: | llvm-dwarfdump -debug-abbrev -debug-info - \ +# RUN: | FileCheck %s + +# CHECK-NOT: contents: +# CHECK: .debug_abbrev contents: +# CHECK-NOT: contents: +# CHECK: .debug_info contents: +# CHECK-NOT: contents: -- cgit v1.2.3