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/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll | 4 ++-- llvm/test/CodeGen/X86/dbg-line-0-no-discriminator.ll | 2 +- llvm/test/CodeGen/X86/dwarf-comp-dir.ll | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/test/CodeGen/X86') diff --git a/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll b/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll index 68edc1c3edb..5983c4a992e 100644 --- a/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll +++ b/llvm/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -filetype=obj | llvm-dwarfdump -debug-dump=info - | FileCheck %s -; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -debug-dump=info - | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -debug-info - | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin10.0.0" diff --git a/llvm/test/CodeGen/X86/dbg-line-0-no-discriminator.ll b/llvm/test/CodeGen/X86/dbg-line-0-no-discriminator.ll index e667a552de3..72fc0480fd4 100644 --- a/llvm/test/CodeGen/X86/dbg-line-0-no-discriminator.ll +++ b/llvm/test/CodeGen/X86/dbg-line-0-no-discriminator.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=obj -use-unknown-locations=Enable -mtriple=x86_64-unknown-linux %s -o %t -; RUN: llvm-dwarfdump -debug-dump=line %t | FileCheck %s +; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s define void @_Z3bazv() !dbg !6 { call void @_Z3foov(), !dbg !9 diff --git a/llvm/test/CodeGen/X86/dwarf-comp-dir.ll b/llvm/test/CodeGen/X86/dwarf-comp-dir.ll index b744a70288e..8c4b8fdc360 100644 --- a/llvm/test/CodeGen/X86/dwarf-comp-dir.ll +++ b/llvm/test/CodeGen/X86/dwarf-comp-dir.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-dump=line %t | FileCheck %s +; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" -- cgit v1.2.3