Index: test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll =================================================================== --- test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll +++ test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll @@ -1,4 +1,4 @@ -; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info -v - | FileCheck %s source_filename = "test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll" target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32" Index: test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll =================================================================== --- test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll +++ test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll @@ -1,4 +1,4 @@ -; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -arm-global-merge -global-merge-group-by-use=false -filetype=obj < %s | llvm-dwarfdump -debug-info -v - | FileCheck %s ; CHECK: DW_TAG_variable ; CHECK-NOT: DW_TAG Index: test/CodeGen/ARM/debug-info-blocks.ll =================================================================== --- test/CodeGen/ARM/debug-info-blocks.ll +++ test/CodeGen/ARM/debug-info-blocks.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump -v - | FileCheck %s ; debug_info content ; CHECK: DW_AT_name {{.*}} "foobar_func_block_invoke_0" Index: test/CodeGen/X86/2010-01-18-DbgValue.ll =================================================================== --- test/CodeGen/X86/2010-01-18-DbgValue.ll +++ test/CodeGen/X86/2010-01-18-DbgValue.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=i686-- -O0 < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s +; RUN: llc -mtriple=i686-- -O0 < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s ; CHECK-LABEL: .debug_info contents: Index: test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll =================================================================== --- test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll +++ test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s -; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s +; RUN: llc < %s -filetype=obj -regalloc=basic | llvm-dwarfdump -v -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" Index: test/CodeGen/X86/dbg-baseptr.ll =================================================================== --- test/CodeGen/X86/dbg-baseptr.ll +++ test/CodeGen/X86/dbg-baseptr.ll @@ -1,5 +1,5 @@ ; RUN: llc -o - %s | FileCheck %s -; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF +; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF ; This test checks that parameters on the stack pointer are correctly ; referenced by debug info. target triple = "x86_64--" Index: test/CodeGen/X86/dwarf-headers.ll =================================================================== --- test/CodeGen/X86/dwarf-headers.ll +++ test/CodeGen/X86/dwarf-headers.ll @@ -1,18 +1,18 @@ ; RUN: llc -dwarf-version=4 -generate-type-units \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SINGLE-4 +; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SINGLE-4 ; RUN: llc -split-dwarf-file=foo.dwo -dwarf-version=4 -generate-type-units \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SPLIT-4 +; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPLIT-4 ; RUN: llc -dwarf-version=5 -generate-type-units \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SINGLE-5 +; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SINGLE-5 ; RUN: llc -split-dwarf-file=foo.dwo -dwarf-version=5 -generate-type-units \ ; RUN: -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=SPLIT-5 +; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPLIT-5 ; Looking for DWARF headers to be generated correctly. ; There are 7 variants: v4 CU, v4 TU, v5 (normal/skeleton/split) CU, Index: test/DebugInfo/AArch64/asan-stack-vars.ll =================================================================== --- test/DebugInfo/AArch64/asan-stack-vars.ll +++ test/DebugInfo/AArch64/asan-stack-vars.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -O0 -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s ; ; Derived from (clang -O0 -g -fsanitize=address -fobjc-arc) ; @protocol NSObject Index: test/DebugInfo/AArch64/bitfields.ll =================================================================== --- test/DebugInfo/AArch64/bitfields.ll +++ test/DebugInfo/AArch64/bitfields.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple aarch64_be-gnu-linux -O0 -filetype=obj -o %t_be.o %s -; RUN: llvm-dwarfdump -debug-info %t_be.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t_be.o | FileCheck %s ; Produced at -O0 from: ; struct bitfield { Index: test/DebugInfo/AArch64/dwarfdump.ll =================================================================== --- test/DebugInfo/AArch64/dwarfdump.ll +++ test/DebugInfo/AArch64/dwarfdump.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=aarch64-non-linux-gnu -dwarf-version=4 < %s -filetype=obj \ -; RUN: | llvm-dwarfdump - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-4 %s +; RUN: | llvm-dwarfdump -v - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-4 %s ; RUN: llc -mtriple=aarch64-non-linux-gnu -dwarf-version=3 < %s -filetype=obj \ -; RUN: | llvm-dwarfdump - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-3 %s +; RUN: | llvm-dwarfdump -v - | FileCheck -check-prefix=CHECK -check-prefix=CHECK-3 %s ; We're mostly checking that relocations are applied correctly ; here. Currently R_AARCH64_ABS32 is used for references to debug data Index: test/DebugInfo/AArch64/frameindices.ll =================================================================== --- test/DebugInfo/AArch64/frameindices.ll +++ test/DebugInfo/AArch64/frameindices.ll @@ -1,4 +1,4 @@ -; RUN: llc -disable-fp-elim -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -disable-fp-elim -O0 -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; Test that a variable with multiple entries in the MMI table makes it into the ; debug info. ; Index: test/DebugInfo/AArch64/line-header.ll =================================================================== --- test/DebugInfo/AArch64/line-header.ll +++ test/DebugInfo/AArch64/line-header.ll @@ -1,5 +1,5 @@ -; RUN: llc -mtriple=aarch64-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump - | FileCheck %s -; RUN: llc -mtriple=aarch64_be-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump - | FileCheck %s +; RUN: llc -mtriple=aarch64-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc -mtriple=aarch64_be-none-linux -O0 -filetype=obj - < %S/../Inputs/line.ll | llvm-dwarfdump -v - | FileCheck %s ; check line table length is correctly calculated for both big and little endian CHECK-LABEL: .debug_line contents: Index: test/DebugInfo/AMDGPU/dwarfdump-relocs.ll =================================================================== --- test/DebugInfo/AMDGPU/dwarfdump-relocs.ll +++ test/DebugInfo/AMDGPU/dwarfdump-relocs.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump - 2>&1 | FileCheck %s +; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -v - 2>&1 | FileCheck %s ; LLVM IR generated with the following command and OpenCL source: ; Index: test/DebugInfo/AMDGPU/pointer-address-space.ll =================================================================== --- test/DebugInfo/AMDGPU/pointer-address-space.ll +++ test/DebugInfo/AMDGPU/pointer-address-space.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -O0 -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; LLVM IR generated with the following command and OpenCL source: ; Index: test/DebugInfo/AMDGPU/variable-locations.ll =================================================================== --- test/DebugInfo/AMDGPU/variable-locations.ll +++ test/DebugInfo/AMDGPU/variable-locations.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; LLVM IR generated with the following command and OpenCL source: ; Index: test/DebugInfo/ARM/PR26163.ll =================================================================== --- test/DebugInfo/ARM/PR26163.ll +++ test/DebugInfo/ARM/PR26163.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -o - < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -filetype=obj -o - < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; ; Checks that we're creating two ranges, one that terminates immediately ; and one that spans the rest of the function. This isn't necessarily the Index: test/DebugInfo/ARM/big-endian-bitfield.ll =================================================================== --- test/DebugInfo/ARM/big-endian-bitfield.ll +++ test/DebugInfo/ARM/big-endian-bitfield.ll @@ -1,5 +1,5 @@ ; RUN: llc -O0 -filetype=obj -mtriple=armeb-none-freebsd -debugger-tune=lldb %s -o - \ -; RUN: | llvm-dwarfdump --debug-info - | FileCheck %s +; RUN: | llvm-dwarfdump -v --debug-info - | FileCheck %s ; Generated from: ; struct S { ; int j:5; Index: test/DebugInfo/ARM/bitfield.ll =================================================================== --- test/DebugInfo/ARM/bitfield.ll +++ test/DebugInfo/ARM/bitfield.ll @@ -1,5 +1,5 @@ ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; REQUIRES: object-emission ; ; Generated from: Index: test/DebugInfo/ARM/partial-subreg.ll =================================================================== --- test/DebugInfo/ARM/partial-subreg.ll +++ test/DebugInfo/ARM/partial-subreg.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s ; This tests a fragment that partially covers subregister compositions. ; ; Our fragment is 96 bits long and lies in a 128-bit register, which Index: test/DebugInfo/ARM/split-complex.ll =================================================================== --- test/DebugInfo/ARM/split-complex.ll +++ test/DebugInfo/ARM/split-complex.ll @@ -1,5 +1,5 @@ ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; REQUIRES: object-emission target datalayout = "e-m:o-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "thumbv7-apple-unknown-macho" Index: test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll =================================================================== --- test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll +++ test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj -o - < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj -o - < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Radar 7833483 ; Do not emit a separate out-of-line definition DIE for the function-local 'foo' ; function (member of the function local 'A' type) Index: test/DebugInfo/Generic/PR20038.ll =================================================================== --- test/DebugInfo/Generic/PR20038.ll +++ test/DebugInfo/Generic/PR20038.ll @@ -3,7 +3,7 @@ ; For some reason, the output when targetting sparc is not quite as expected. ; XFAIL: sparc -; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; IR generated from clang -O0 with: ; struct C { Index: test/DebugInfo/Generic/constant-pointers.ll =================================================================== --- test/DebugInfo/Generic/constant-pointers.ll +++ test/DebugInfo/Generic/constant-pointers.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Ensure that pointer constants are emitted as unsigned data. Alternatively, ; these could be signless data (dataN). Index: test/DebugInfo/Generic/cross-cu-inlining.ll =================================================================== --- test/DebugInfo/Generic/cross-cu-inlining.ll +++ test/DebugInfo/Generic/cross-cu-inlining.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck -implicit-check-not=DW_TAG %s -; RUN: %llc_dwarf -dwarf-accel-tables=Enable -dwarf-linkage-names=All -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck --check-prefix=CHECK-ACCEL --check-prefix=CHECK %s +; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck -implicit-check-not=DW_TAG %s +; RUN: %llc_dwarf -dwarf-accel-tables=Enable -dwarf-linkage-names=All -O0 -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck --check-prefix=CHECK-ACCEL --check-prefix=CHECK %s ; Build from source: ; $ clang++ a.cpp b.cpp -g -c -emit-llvm Index: test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll =================================================================== --- test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll +++ test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Testing that two distinct (distinct by writing them in separate files, while ; still fulfilling C++'s ODR by having identical token sequences) functions, Index: test/DebugInfo/Generic/cross-cu-linkonce.ll =================================================================== --- test/DebugInfo/Generic/cross-cu-linkonce.ll +++ test/DebugInfo/Generic/cross-cu-linkonce.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Built from source: ; $ clang++ a.cpp b.cpp -g -c -emit-llvm Index: test/DebugInfo/Generic/cu-ranges.ll =================================================================== --- test/DebugInfo/Generic/cu-ranges.ll +++ test/DebugInfo/Generic/cu-ranges.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -O0 -filetype=obj %s -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; Check that we emit ranges for this which has a non-traditional section and a normal section. Index: test/DebugInfo/Generic/dead-argument-order.ll =================================================================== --- test/DebugInfo/Generic/dead-argument-order.ll +++ test/DebugInfo/Generic/dead-argument-order.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Built from the following source with clang -O1 ; struct S { int i; }; Index: test/DebugInfo/Generic/debug-info-qualifiers.ll =================================================================== --- test/DebugInfo/Generic/debug-info-qualifiers.ll +++ test/DebugInfo/Generic/debug-info-qualifiers.ll @@ -14,7 +14,7 @@ ; auto pr = &A::r; ; } ; -; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump - | FileCheck %s +; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -v - | FileCheck %s ; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes ; CHECK-NEXT: DW_AT_reference DW_FORM_flag_present ; CHECK: DW_TAG_subroutine_type DW_CHILDREN_yes Index: test/DebugInfo/Generic/enum-types.ll =================================================================== --- test/DebugInfo/Generic/enum-types.ll +++ test/DebugInfo/Generic/enum-types.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission ; -; RUN: %llc_dwarf -filetype=obj -O0 -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -filetype=obj -O0 -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Make sure we can handle enums with the same identifier but in enum types of ; different compile units. Index: test/DebugInfo/Generic/enum.ll =================================================================== --- test/DebugInfo/Generic/enum.ll +++ test/DebugInfo/Generic/enum.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; IR generated from the following code compiled with clang -g: ; enum e1 { I, J = 0xffffffffU, K = 0xf000000000000000ULL } a; Index: test/DebugInfo/Generic/gmlt_profiling.ll =================================================================== --- test/DebugInfo/Generic/gmlt_profiling.ll +++ test/DebugInfo/Generic/gmlt_profiling.ll @@ -1,5 +1,5 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %S/gmlt_profiling.ll | llvm-dwarfdump - | FileCheck %S/gmlt_profiling.ll +; RUN: %llc_dwarf -O0 -filetype=obj < %S/gmlt_profiling.ll | llvm-dwarfdump -v - | FileCheck %S/gmlt_profiling.ll ; CHECK: .debug_info ; CHECK: DW_TAG_subprogram Index: test/DebugInfo/Generic/imported-name-inlined.ll =================================================================== --- test/DebugInfo/Generic/imported-name-inlined.ll +++ test/DebugInfo/Generic/imported-name-inlined.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s ; Generated from the following source: ; namespace ns { Index: test/DebugInfo/Generic/incorrect-variable-debugloc.ll =================================================================== --- test/DebugInfo/Generic/incorrect-variable-debugloc.ll +++ test/DebugInfo/Generic/incorrect-variable-debugloc.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O2 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O2 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; This is a test case that's as reduced as I can get it, though I haven't fully ; understood the mechanisms by which this bug occurs, so perhaps there's further Index: test/DebugInfo/Generic/linkage-name-abstract.ll =================================================================== --- test/DebugInfo/Generic/linkage-name-abstract.ll +++ test/DebugInfo/Generic/linkage-name-abstract.ll @@ -1,8 +1,8 @@ -; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=Abstract < %s | llvm-dwarfdump -debug-info - > %t +; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=Abstract < %s | llvm-dwarfdump -v -debug-info - > %t ; RUN: FileCheck %s -check-prefix=ONENAME < %t ; RUN: FileCheck %s -check-prefix=REF < %t ; Verify tuning for SCE gets us Abstract only. -; RUN: %llc_dwarf -O0 -filetype=obj -debugger-tune=sce < %s | llvm-dwarfdump -debug-info - > %t +; RUN: %llc_dwarf -O0 -filetype=obj -debugger-tune=sce < %s | llvm-dwarfdump -v -debug-info - > %t ; RUN: FileCheck %s -check-prefix=ONENAME < %t ; RUN: FileCheck %s -check-prefix=REF < %t ; REQUIRES: object-emission Index: test/DebugInfo/Generic/mainsubprogram.ll =================================================================== --- test/DebugInfo/Generic/mainsubprogram.ll +++ test/DebugInfo/Generic/mainsubprogram.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; Make sure we're emitting DW_AT_main_subprogram. ; CHECK: DW_TAG_subprogram Index: test/DebugInfo/Generic/member-order.ll =================================================================== --- test/DebugInfo/Generic/member-order.ll +++ test/DebugInfo/Generic/member-order.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; generated by clang from: ; struct foo { Index: test/DebugInfo/Generic/member-pointers.ll =================================================================== --- test/DebugInfo/Generic/member-pointers.ll +++ test/DebugInfo/Generic/member-pointers.ll @@ -2,7 +2,7 @@ ; XFAIL: hexagon ; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; CHECK: DW_TAG_ptr_to_member_type ; CHECK: DW_TAG_ptr_to_member_type ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}) Index: test/DebugInfo/Generic/missing-abstract-variable.ll =================================================================== --- test/DebugInfo/Generic/missing-abstract-variable.ll +++ test/DebugInfo/Generic/missing-abstract-variable.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; The formal parameter 'b' for Function 'x' when inlined within 'a' is lost on ; mips and powerpc64 (and on x86_64 at at least -O2). Presumably this is a Index: test/DebugInfo/Generic/namespace.ll =================================================================== --- test/DebugInfo/Generic/namespace.ll +++ test/DebugInfo/Generic/namespace.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v - | FileCheck %s ; CHECK: debug_info contents ; CHECK: DW_AT_name{{.*}}= [[F1:.*]]) ; CHECK: [[NS1:0x[0-9a-f]*]]:{{ *}}DW_TAG_namespace Index: test/DebugInfo/Generic/namespace_function_definition.ll =================================================================== --- test/DebugInfo/Generic/namespace_function_definition.ll +++ test/DebugInfo/Generic/namespace_function_definition.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Generated from clang with the following source: ; namespace ns { Index: test/DebugInfo/Generic/namespace_inline_function_definition.ll =================================================================== --- test/DebugInfo/Generic/namespace_inline_function_definition.ll +++ test/DebugInfo/Generic/namespace_inline_function_definition.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj -dwarf-linkage-names=All < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Generate from clang with the following source. Note that the definition of ; the inline function follows its use to workaround another bug that should be Index: test/DebugInfo/Generic/nodebug.ll =================================================================== --- test/DebugInfo/Generic/nodebug.ll +++ test/DebugInfo/Generic/nodebug.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s +; RUN: %llc_dwarf < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s ; Test that a nodebug function (a function not appearing in the debug info IR ; metadata subprogram list) with DebugLocs on its IR doesn't cause crashes/does Index: test/DebugInfo/Generic/ptrsize.ll =================================================================== --- test/DebugInfo/Generic/ptrsize.ll +++ test/DebugInfo/Generic/ptrsize.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; Check that pointers and references get emitted without size information in ; DWARF, even if they are so specified in the IR Index: test/DebugInfo/Generic/recursive_inlining.ll =================================================================== --- test/DebugInfo/Generic/recursive_inlining.ll +++ test/DebugInfo/Generic/recursive_inlining.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; This isn't a very pretty test case - I imagine there might be other ways to ; tickle the optimizers into producing the desired code, but I haven't found Index: test/DebugInfo/Generic/restrict.ll =================================================================== --- test/DebugInfo/Generic/restrict.ll +++ test/DebugInfo/Generic/restrict.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -dwarf-version=2 -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V2 %s -; RUN: %llc_dwarf -dwarf-version=3 -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V3 %s +; RUN: %llc_dwarf -dwarf-version=2 -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V2 %s +; RUN: %llc_dwarf -dwarf-version=3 -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=V3 %s ; CHECK: DW_AT_name {{.*}} "dst" ; V2: DW_AT_type {{.*}} {[[PTR:0x.*]]} Index: test/DebugInfo/Generic/sugared-constants.ll =================================================================== --- test/DebugInfo/Generic/sugared-constants.ll +++ test/DebugInfo/Generic/sugared-constants.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Use correct signedness when emitting constants of derived (sugared) types. ; CHECK: DW_AT_const_value [DW_FORM_sdata] (42) Index: test/DebugInfo/Generic/template-recursive-void.ll =================================================================== --- test/DebugInfo/Generic/template-recursive-void.ll +++ test/DebugInfo/Generic/template-recursive-void.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; This was pulled from clang's debug-info-template-recursive.cpp test. ; class base { }; Index: test/DebugInfo/Generic/thrownTypes.ll =================================================================== --- test/DebugInfo/Generic/thrownTypes.ll +++ test/DebugInfo/Generic/thrownTypes.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; CHECK: DW_TAG_subprogram ; CHECK: DW_AT_name {{.*}} "f" Index: test/DebugInfo/Generic/tu-composite.ll =================================================================== --- test/DebugInfo/Generic/tu-composite.ll +++ test/DebugInfo/Generic/tu-composite.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; CHECK: [[TYPE:.*]]: DW_TAG_structure_type ; Make sure we correctly handle containing type of a struct being a type identifier. ; CHECK-NEXT: DW_AT_containing_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) Index: test/DebugInfo/Generic/tu-member-pointer.ll =================================================================== --- test/DebugInfo/Generic/tu-member-pointer.ll +++ test/DebugInfo/Generic/tu-member-pointer.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; CHECK: DW_TAG_ptr_to_member_type ; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}) ; CHECK: [[TYPE]]: DW_TAG_base_type Index: test/DebugInfo/Generic/unconditional-branch.ll =================================================================== --- test/DebugInfo/Generic/unconditional-branch.ll +++ test/DebugInfo/Generic/unconditional-branch.ll @@ -2,7 +2,7 @@ ; PR 19261 ; RUN: %llc_dwarf -fast-isel=false -O0 -filetype=obj %s -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; CHECK: {{0x[0-9a-f]+}} 1 0 1 0 0 is_stmt ; CHECK: {{0x[0-9a-f]+}} 2 0 1 0 0 is_stmt Index: test/DebugInfo/Generic/varargs.ll =================================================================== --- test/DebugInfo/Generic/varargs.ll +++ test/DebugInfo/Generic/varargs.ll @@ -1,5 +1,5 @@ ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; REQUIRES: object-emission ; ; Test debug info for variadic function arguments. Index: test/DebugInfo/Generic/virtual-index.ll =================================================================== --- test/DebugInfo/Generic/virtual-index.ll +++ test/DebugInfo/Generic/virtual-index.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; Generated from the following C++ source code: ; Index: test/DebugInfo/MIR/AArch64/implicit-def-dead-scope.mir =================================================================== --- test/DebugInfo/MIR/AArch64/implicit-def-dead-scope.mir +++ test/DebugInfo/MIR/AArch64/implicit-def-dead-scope.mir @@ -1,5 +1,5 @@ # RUN: llc -start-after=livedebugvalues -filetype=obj -o - %s \ -# RUN: | llvm-dwarfdump - | FileCheck %s +# RUN: | llvm-dwarfdump -v - | FileCheck %s # This tests for a crash in DwarfDebug's singular DBG_VALUE range promotion when # encountering an IMPLICIT_DEF in its own lexical scope. Index: test/DebugInfo/MIR/X86/bit-piece-dh.mir =================================================================== --- test/DebugInfo/MIR/X86/bit-piece-dh.mir +++ test/DebugInfo/MIR/X86/bit-piece-dh.mir @@ -1,4 +1,4 @@ -# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump --debug-info - | FileCheck %s +# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v --debug-info - | FileCheck %s # CHECK: .debug_info contents: # CHECK: DW_TAG_variable # CHECK-NEXT: DW_AT_location {{.*}} (DW_OP_reg1 RDX, DW_OP_bit_piece 0x8 0x8) Index: test/DebugInfo/MIR/X86/empty-inline.mir =================================================================== --- test/DebugInfo/MIR/X86/empty-inline.mir +++ test/DebugInfo/MIR/X86/empty-inline.mir @@ -1,4 +1,4 @@ -# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +# RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s # # This testcase has an implicit def pseudo-iunstruction with a debug location. # Index: test/DebugInfo/Mips/delay-slot.ll =================================================================== --- test/DebugInfo/Mips/delay-slot.ll +++ test/DebugInfo/Mips/delay-slot.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj -O0 -relocation-model=pic < %s -mtriple mips-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s +; RUN: llc -filetype=obj -O0 -relocation-model=pic < %s -mtriple mips-unknown-linux-gnu | llvm-dwarfdump -v - | FileCheck %s ; PR19815 ; Generated using clang -target mips-linux-gnu -g test.c -S -o - -flto|opt -sroa -S Index: test/DebugInfo/Mips/dsr-fixed-objects.ll =================================================================== --- test/DebugInfo/Mips/dsr-fixed-objects.ll +++ test/DebugInfo/Mips/dsr-fixed-objects.ll @@ -1,5 +1,5 @@ ; RUN: llc -march=mips -mcpu=mips32r2 -O1 -filetype=obj -relocation-model=pic <%s | \ -; RUN: llvm-dwarfdump -all - | FileCheck %s +; RUN: llvm-dwarfdump -v -all - | FileCheck %s ; void foo(int *); ; Index: test/DebugInfo/Mips/dsr-non-fixed-objects.ll =================================================================== --- test/DebugInfo/Mips/dsr-non-fixed-objects.ll +++ test/DebugInfo/Mips/dsr-non-fixed-objects.ll @@ -1,5 +1,5 @@ ; RUN: llc -march=mips -mcpu=mips32r2 -O0 -filetype=obj -fast-isel=0 <%s | \ -; RUN: llvm-dwarfdump -all - | FileCheck %s +; RUN: llvm-dwarfdump -v -all - | FileCheck %s declare void @llvm.dbg.declare(metadata, metadata, metadata) Index: test/DebugInfo/Sparc/gnu-window-save.ll =================================================================== --- test/DebugInfo/Sparc/gnu-window-save.ll +++ test/DebugInfo/Sparc/gnu-window-save.ll @@ -1,5 +1,5 @@ -; RUN: llc -filetype=obj -O0 < %s -mtriple sparc64-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s --check-prefix=SPARC64 -; RUN: llc -filetype=obj -O0 < %s -mtriple sparc-unknown-linux-gnu | llvm-dwarfdump - | FileCheck %s --check-prefix=SPARC32 +; RUN: llc -filetype=obj -O0 < %s -mtriple sparc64-unknown-linux-gnu | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPARC64 +; RUN: llc -filetype=obj -O0 < %s -mtriple sparc-unknown-linux-gnu | llvm-dwarfdump -v - | FileCheck %s --check-prefix=SPARC32 ; Check for DW_CFA_GNU_Window_save in debug_frame. Also, Ensure that relocations ; are performed correctly in debug_info. Index: test/DebugInfo/SystemZ/variable-loc.ll =================================================================== --- test/DebugInfo/SystemZ/variable-loc.ll +++ test/DebugInfo/SystemZ/variable-loc.ll @@ -1,6 +1,6 @@ ; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim < %s | FileCheck %s ; RUN: llc -mtriple=s390x-linux-gnu -disable-fp-elim -filetype=obj < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=DEBUG %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=DEBUG %s ; ; This is a regression test making sure the location of variables is correct in ; debugging information, even if they're addressed via the frame pointer. Index: test/DebugInfo/SystemZ/variable-loc.s =================================================================== --- test/DebugInfo/SystemZ/variable-loc.s +++ test/DebugInfo/SystemZ/variable-loc.s @@ -1,4 +1,4 @@ -# RUN: llvm-mc < %s -triple=s390x-linux-gnu -filetype=obj | llvm-dwarfdump - | FileCheck %s +# RUN: llvm-mc < %s -triple=s390x-linux-gnu -filetype=obj | llvm-dwarfdump -v - | FileCheck %s # # We use both R_390_32 and R_390_64 to encode the dwarf information. # Test that they are used correctly. This uses the assembly output Index: test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll =================================================================== --- test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll +++ test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-pc-linux-gnu %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; ModuleID = 'test.c' Index: test/DebugInfo/X86/DW_AT_calling-convention.ll =================================================================== --- test/DebugInfo/X86/DW_AT_calling-convention.ll +++ test/DebugInfo/X86/DW_AT_calling-convention.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s -filetype=obj -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; C++ source to regenerate: ; $ cat t.cpp Index: test/DebugInfo/X86/DW_AT_linkage_name.ll =================================================================== --- test/DebugInfo/X86/DW_AT_linkage_name.ll +++ test/DebugInfo/X86/DW_AT_linkage_name.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-macosx %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; ; struct A { ; A(int i); Index: test/DebugInfo/X86/DW_AT_location-reference.ll =================================================================== --- test/DebugInfo/X86/DW_AT_location-reference.ll +++ test/DebugInfo/X86/DW_AT_location-reference.ll @@ -1,8 +1,8 @@ ; RUN: llc -O1 -filetype=obj -mtriple=x86_64-apple-darwin < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; RUN: llvm-objdump -r %t | FileCheck -check-prefix=DARWIN %s ; RUN: llc -O1 -filetype=obj -mtriple=x86_64-pc-linux-gnu < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; RUN: llvm-objdump -r %t | FileCheck -check-prefix=LINUX %s ; PR9493 Index: test/DebugInfo/X86/DW_AT_object_pointer.ll =================================================================== --- test/DebugInfo/X86/DW_AT_object_pointer.ll +++ test/DebugInfo/X86/DW_AT_object_pointer.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; CHECK: DW_TAG_formal_parameter [ ; CHECK-NOT: "" Index: test/DebugInfo/X86/DW_AT_specification.ll =================================================================== --- test/DebugInfo/X86/DW_AT_specification.ll +++ test/DebugInfo/X86/DW_AT_specification.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; test that the DW_AT_specification is a back edge in the file. Index: test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll =================================================================== --- test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll +++ test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %s -; RUN: llvm-dwarfdump -all %t | FileCheck %s +; RUN: llvm-dwarfdump -v -all %t | FileCheck %s ; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj -dwarf-version=3 %s -; RUN: llvm-dwarfdump -all %t | FileCheck %s -check-prefix=DWARF3 +; RUN: llvm-dwarfdump -v -all %t | FileCheck %s -check-prefix=DWARF3 ; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] ; DWARF3: DW_AT_stmt_list [DW_FORM_data4] Index: test/DebugInfo/X86/DW_TAG_friend.ll =================================================================== --- test/DebugInfo/X86/DW_TAG_friend.ll +++ test/DebugInfo/X86/DW_TAG_friend.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; Check that the friend tag is there and is followed by a DW_AT_friend that has a reference back. Index: test/DebugInfo/X86/FrameIndexExprs.ll =================================================================== --- test/DebugInfo/X86/FrameIndexExprs.ll +++ test/DebugInfo/X86/FrameIndexExprs.ll @@ -1,6 +1,6 @@ ; PR31381: An assertion in the DWARF backend when fragments in MMI slots are ; sorted by largest offset first. -; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; CHECK: DW_TAG_formal_parameter ; CHECK: DW_TAG_formal_parameter ; CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg -8, DW_OP_piece 0x3, DW_OP_piece 0x6, DW_OP_fbreg -3, DW_OP_piece 0x3) Index: test/DebugInfo/X86/array.ll =================================================================== --- test/DebugInfo/X86/array.ll +++ test/DebugInfo/X86/array.ll @@ -13,7 +13,7 @@ ; } ; ; RUN: llc -filetype=asm %s -o - | FileCheck %s -; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - ---debug-info | FileCheck %s --check-prefix=DWARF +; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -v - ---debug-info | FileCheck %s --check-prefix=DWARF ; CHECK-LABEL: _main: ; CHECK: movaps {{.*}}, (%rsp) Index: test/DebugInfo/X86/bitfields-dwarf4.ll =================================================================== --- test/DebugInfo/X86/bitfields-dwarf4.ll +++ test/DebugInfo/X86/bitfields-dwarf4.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o - %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s ; RUN: llc -mtriple x86_64-gnu-linux -O0 -filetype=obj -o - %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s --check-prefix=LINUX +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s --check-prefix=LINUX ; LINUX-NOT: DW_AT_data_bit_offset ; ; Generated from: Index: test/DebugInfo/X86/bitfields.ll =================================================================== --- test/DebugInfo/X86/bitfields.ll +++ test/DebugInfo/X86/bitfields.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o %t_le.o %s -; RUN: llvm-dwarfdump -debug-info %t_le.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t_le.o | FileCheck %s ; Produced at -O0 from: ; struct bitfield { Index: test/DebugInfo/X86/block-capture.ll =================================================================== --- test/DebugInfo/X86/block-capture.ll +++ test/DebugInfo/X86/block-capture.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; Checks that we emit debug info for the block variable declare. ; CHECK: DW_TAG_subprogram Index: test/DebugInfo/X86/byvalstruct.ll =================================================================== --- test/DebugInfo/X86/byvalstruct.ll +++ test/DebugInfo/X86/byvalstruct.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-macosx10.8.0 -O0 -filetype=obj -o %t %s -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; Test that we generate debug info for by-value struct args that are not used. ; ; CHECK: DW_TAG_formal_parameter Index: test/DebugInfo/X86/concrete_out_of_line.ll =================================================================== --- test/DebugInfo/X86/concrete_out_of_line.ll +++ test/DebugInfo/X86/concrete_out_of_line.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-linux < %s -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -mtriple=x86_64-linux < %s -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s ; test that we add DW_AT_inline even when we only have concrete out of line ; instances. Index: test/DebugInfo/X86/constant-aggregate.ll =================================================================== --- test/DebugInfo/X86/constant-aggregate.ll +++ test/DebugInfo/X86/constant-aggregate.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -filetype=obj -o %t.o -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; Test emitting a constant for an aggregate type. ; ; clang -S -O1 -emit-llvm Index: test/DebugInfo/X86/constant-loclist.ll =================================================================== --- test/DebugInfo/X86/constant-loclist.ll +++ test/DebugInfo/X86/constant-loclist.ll @@ -1,4 +1,4 @@ -; RUN: %llc_dwarf -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s ; A hand-written testcase to check 64-bit constant handling in location lists. Index: test/DebugInfo/X86/data_member_location.ll =================================================================== --- test/DebugInfo/X86/data_member_location.ll +++ test/DebugInfo/X86/data_member_location.ll @@ -1,5 +1,5 @@ -; RUN: llc -mtriple=x86_64-linux -O0 -o - -filetype=obj < %s | llvm-dwarfdump -debug-info -| FileCheck %s -; RUN: llc -mtriple=x86_64-linux -dwarf-version=2 -O0 -o - -filetype=obj < %s | llvm-dwarfdump -debug-info -| FileCheck -check-prefix=DWARF2 %s +; RUN: llc -mtriple=x86_64-linux -O0 -o - -filetype=obj < %s | llvm-dwarfdump -v -debug-info -| FileCheck %s +; RUN: llc -mtriple=x86_64-linux -dwarf-version=2 -O0 -o - -filetype=obj < %s | llvm-dwarfdump -v -debug-info -| FileCheck -check-prefix=DWARF2 %s ; Generated from Clang with the following source: ; Index: test/DebugInfo/X86/dbg-abstract-vars-g-gmlt.ll =================================================================== --- test/DebugInfo/X86/dbg-abstract-vars-g-gmlt.ll +++ test/DebugInfo/X86/dbg-abstract-vars-g-gmlt.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -filetype=obj | llvm-dwarfdump - --debug-info | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - --debug-info | FileCheck %s ; ; IR module created as follows: ; clang -emit-llvm -S db-abs-1.cpp -o db-abs-1.ll -g Index: test/DebugInfo/X86/dbg-const-int.ll =================================================================== --- test/DebugInfo/X86/dbg-const-int.ll +++ test/DebugInfo/X86/dbg-const-int.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: | llvm-dwarfdump -v -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-macosx10.6.7" ; Radar 9511391 Index: test/DebugInfo/X86/dbg-declare-alloca.ll =================================================================== --- test/DebugInfo/X86/dbg-declare-alloca.ll +++ test/DebugInfo/X86/dbg-declare-alloca.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s -; RUN: llc < %s -filetype=obj | llvm-dwarfdump - --debug-info | FileCheck %s --check-prefix=DWARF +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - --debug-info | FileCheck %s --check-prefix=DWARF ; This should use the frame index side table for allocas, not DBG_VALUE ; instructions. For SDAG ISel, this test would see an SDNode materializing the Index: test/DebugInfo/X86/dbg-declare-arg.ll =================================================================== --- test/DebugInfo/X86/dbg-declare-arg.ll +++ test/DebugInfo/X86/dbg-declare-arg.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -fast-isel=true -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -O0 -fast-isel=true -filetype=obj -o - %s | llvm-dwarfdump -v - | 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-macosx10.6.7" ; rdar://problem/9321650 Index: test/DebugInfo/X86/dbg-declare.ll =================================================================== --- test/DebugInfo/X86/dbg-declare.ll +++ test/DebugInfo/X86/dbg-declare.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -O0 -mtriple x86_64-apple-darwin | FileCheck %s ; RUN: llc < %s -O0 -mtriple x86_64-apple-darwin -filetype=obj \ -; RUN: | llvm-dwarfdump - --debug-info | FileCheck %s --check-prefix=DWARF +; RUN: | llvm-dwarfdump -v - --debug-info | FileCheck %s --check-prefix=DWARF ; ; CHECK-LABEL: _foo: Index: test/DebugInfo/X86/dbg-value-frame-index.ll =================================================================== --- test/DebugInfo/X86/dbg-value-frame-index.ll +++ test/DebugInfo/X86/dbg-value-frame-index.ll @@ -1,6 +1,6 @@ ; RUN: llc -mtriple=x86_64-unknown-unknown -o - %s | FileCheck %s ; RUN: llc -mtriple=x86_64-unknown-unknown -filetype=obj < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF +; RUN: | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF define i1 @test() !dbg !4 { entry: Index: test/DebugInfo/X86/dbg-value-g-gmlt.ll =================================================================== --- test/DebugInfo/X86/dbg-value-g-gmlt.ll +++ test/DebugInfo/X86/dbg-value-g-gmlt.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -filetype=obj | llvm-dwarfdump - --debug-info | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - --debug-info | FileCheck %s ; ; IR module created as follows: ; clang -emit-llvm -S -O2 foo.cpp -o foo.ll -g Index: test/DebugInfo/X86/dbg-value-inlined-parameter.ll =================================================================== --- test/DebugInfo/X86/dbg-value-inlined-parameter.ll +++ test/DebugInfo/X86/dbg-value-inlined-parameter.ll @@ -1,9 +1,9 @@ ; RUN: llc -mtriple=x86_64-apple-darwin < %s -filetype=obj \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s ; RUN: llc -mtriple=x86_64-linux-gnu < %s -filetype=obj \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=LINUX %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=LINUX %s ; RUN: llc -mtriple=x86_64-apple-darwin < %s -filetype=obj -regalloc=basic \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %s ; CHECK: DW_TAG_subprogram ; CHECK: DW_AT_abstract_origin {{.*}} "foo" Index: test/DebugInfo/X86/dbg-value-location.ll =================================================================== --- test/DebugInfo/X86/dbg-value-location.ll +++ test/DebugInfo/X86/dbg-value-location.ll @@ -1,5 +1,5 @@ -; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s -; RUN: llc -filetype=obj %s -regalloc=basic -o - | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s +; RUN: llc -filetype=obj %s -regalloc=basic -o - | llvm-dwarfdump -v -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" ; Test that the type for the formal parameter "var" makes it into the debug info. Index: test/DebugInfo/X86/dbg-value-regmask-clobber.ll =================================================================== --- test/DebugInfo/X86/dbg-value-regmask-clobber.ll +++ test/DebugInfo/X86/dbg-value-regmask-clobber.ll @@ -1,5 +1,5 @@ ; RUN: llc < %s | FileCheck %s --check-prefix=ASM -; RUN: llc < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF ; Values in registers should be clobbered by calls, which use a regmask instead ; of individual register def operands. Index: test/DebugInfo/X86/debug-info-blocks.ll =================================================================== --- test/DebugInfo/X86/debug-info-blocks.ll +++ test/DebugInfo/X86/debug-info-blocks.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple x86_64-apple-darwin -filetype=obj -o %t.o < %s -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; Generated from llvm/tools/clang/test/CodeGenObjC/debug-info-blocks.m ; rdar://problem/9279956 Index: test/DebugInfo/X86/debug-info-packed-struct.ll =================================================================== --- test/DebugInfo/X86/debug-info-packed-struct.ll +++ test/DebugInfo/X86/debug-info-packed-struct.ll @@ -4,7 +4,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-darwin" ; RUN: %llc_dwarf -O0 -filetype=obj -o %t.o %s -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; REQUIRES: object-emission ; // --------------------------------------------------------------------- Index: test/DebugInfo/X86/debug-info-static-member.ll =================================================================== --- test/DebugInfo/X86/debug-info-static-member.ll +++ test/DebugInfo/X86/debug-info-static-member.ll @@ -1,9 +1,9 @@ ; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-unknown-linux-gnu -dwarf-version=4 -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=PRESENT -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=ABSENT +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=PRESENT +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=ABSENT ; RUN: llc %s -o %t -filetype=obj -O0 -mtriple=x86_64-apple-darwin -dwarf-version=4 -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=DARWINP -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s -check-prefix=DARWINA +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=DARWINP +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s -check-prefix=DARWINA ; Verify that attributes we do want are PRESENT; ; verify that attributes we don't want are ABSENT. ; It's a lot easier to do this in two passes than in one. Index: test/DebugInfo/X86/debug-loc-frame.ll =================================================================== --- test/DebugInfo/X86/debug-loc-frame.ll +++ test/DebugInfo/X86/debug-loc-frame.ll @@ -4,7 +4,7 @@ ; for the stack location directly instead of generating a register+offset indirection. ; RUN: llc -O2 -filetype=obj -disable-post-ra -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s +; RUN: | llvm-dwarfdump -v - | FileCheck %s ; ; int data = 17; ; int sum = 0; Index: test/DebugInfo/X86/debug-loc-offset.ll =================================================================== --- test/DebugInfo/X86/debug-loc-offset.ll +++ test/DebugInfo/X86/debug-loc-offset.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -filetype=obj -O0 -mtriple=i386-unknown-linux-gnu -dwarf-version=4 -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; From the code: Index: test/DebugInfo/X86/debug-macro.ll =================================================================== --- test/DebugInfo/X86/debug-macro.ll +++ test/DebugInfo/X86/debug-macro.ll @@ -1,4 +1,4 @@ -; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; CHECK-LABEL: .debug_info contents: Index: test/DebugInfo/X86/default-subrange-array.ll =================================================================== --- test/DebugInfo/X86/default-subrange-array.ll +++ test/DebugInfo/X86/default-subrange-array.ll @@ -1,8 +1,8 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -dwarf-version 4 \ -; RUN: -o - < %s | llvm-dwarfdump - --debug-info \ +; RUN: -o - < %s | llvm-dwarfdump -v - --debug-info \ ; RUN: | FileCheck %s -check-prefixes=CHECK,DWARF4 ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -dwarf-version 5 \ -; RUN: -o - < %s | llvm-dwarfdump - --debug-info \ +; RUN: -o - < %s | llvm-dwarfdump -v - --debug-info \ ; RUN: | FileCheck %s -check-prefixes=CHECK,DWARF5 ; Check that we can omit default array lower-bounds. Index: test/DebugInfo/X86/double-declare.ll =================================================================== --- test/DebugInfo/X86/double-declare.ll +++ test/DebugInfo/X86/double-declare.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o - < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o - < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; PR33157. Don't crash on duplicate dbg.declare. ; CHECK: DW_TAG_formal_parameter ; CHECK: DW_AT_location [DW_FORM_exprloc] Index: test/DebugInfo/X86/dw_op_minus_direct.ll =================================================================== --- test/DebugInfo/X86/dw_op_minus_direct.ll +++ test/DebugInfo/X86/dw_op_minus_direct.ll @@ -1,8 +1,8 @@ ; Test dwarf codegen of DW_OP_minus. -; RUN: llc -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s -; RUN: llc -dwarf-version=2 -filetype=obj < %s | llvm-dwarfdump - \ +; RUN: llc -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc -dwarf-version=2 -filetype=obj < %s | llvm-dwarfdump -v - \ ; RUN: | FileCheck %s --check-prefix=DWARF2 -; RUN: llc -dwarf-version=3 -filetype=obj < %s | llvm-dwarfdump - \ +; RUN: llc -dwarf-version=3 -filetype=obj < %s | llvm-dwarfdump -v - \ ; RUN: | FileCheck %s --check-prefix=DWARF2 ; This was derived manually from: Index: test/DebugInfo/X86/dwarfdump-debug-loc-simple.test =================================================================== --- test/DebugInfo/X86/dwarfdump-debug-loc-simple.test +++ test/DebugInfo/X86/dwarfdump-debug-loc-simple.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/../Inputs/dwarfdump-test-loc-list-32bit.elf.o | FileCheck %s +RUN: llvm-dwarfdump -v %p/../Inputs/dwarfdump-test-loc-list-32bit.elf.o | FileCheck %s Note: the input file was generated from Inputs/dwarfdump-test-loc-list-32bit.elf.cpp CHECK: .debug_info Index: test/DebugInfo/X86/dwarfdump-ranges-baseaddr-exe.s =================================================================== --- test/DebugInfo/X86/dwarfdump-ranges-baseaddr-exe.s +++ test/DebugInfo/X86/dwarfdump-ranges-baseaddr-exe.s @@ -1,4 +1,4 @@ -# RUN: llvm-dwarfdump %S/../Inputs/dwarfdump-ranges-baseaddr-exe.elf-x86-64 \ +# RUN: llvm-dwarfdump -v %S/../Inputs/dwarfdump-ranges-baseaddr-exe.elf-x86-64 \ # RUN: | FileCheck %s ## Executable binary for test produced from object built in Index: test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s =================================================================== --- test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s +++ test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o %t -# RUN: llvm-dwarfdump %t | FileCheck %s +# RUN: llvm-dwarfdump -v %t | FileCheck %s # CHECK: .debug_info contents: # CHECK: 0x0000000b: DW_TAG_compile_unit [1] Index: test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s =================================================================== --- test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s +++ test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o %t -# RUN: llvm-dwarfdump %t | FileCheck %s +# RUN: llvm-dwarfdump -v %t | FileCheck %s # CHECK: .debug_info contents: # CHECK: DW_TAG_compile_unit @@ -14,7 +14,7 @@ # CHECK: 00000000 0000000000000000 0000000000000003 # CHECK: 00000000 -# RUN: llvm-dwarfdump -brief=true %t | FileCheck %s --check-prefix=BRIEF +# RUN: llvm-dwarfdump %t | FileCheck %s --check-prefix=BRIEF # BRIEF: DW_TAG_compile_unit # BRIEF: DW_AT_ranges (0x00000000 # BRIEF-NEXT: [0x0000000000000000 - 0x0000000000000001) Index: test/DebugInfo/X86/elf-names.ll =================================================================== --- test/DebugInfo/X86/elf-names.ll +++ test/DebugInfo/X86/elf-names.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-unknown-linux-gnu %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; RUN: llvm-as < %s | llvm-dis | FileCheck --check-prefix=CHECK-DIS %s ; CHECK: 0x0000000b: DW_TAG_compile_unit Index: test/DebugInfo/X86/empty-and-one-elem-array.ll =================================================================== --- test/DebugInfo/X86/empty-and-one-elem-array.ll +++ test/DebugInfo/X86/empty-and-one-elem-array.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o %t < %s -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; %struct.foo = type { i32, [1 x i32] } Index: test/DebugInfo/X86/empty-array.ll =================================================================== --- test/DebugInfo/X86/empty-array.ll +++ test/DebugInfo/X86/empty-array.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o %t < %s -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; source_filename = "test/DebugInfo/X86/empty-array.ll" Index: test/DebugInfo/X86/empty.ll =================================================================== --- test/DebugInfo/X86/empty.ll +++ test/DebugInfo/X86/empty.ll @@ -1,5 +1,5 @@ -; RUN: llc -mtriple i686-pc-cygwin < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s -; RUN: llc -mtriple i686-pc-cygwin -split-dwarf-file=foo.dwo < %s -filetype=obj | llvm-dwarfdump - | FileCheck --check-prefix=FISSION %s +; RUN: llc -mtriple i686-pc-cygwin < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc -mtriple i686-pc-cygwin -split-dwarf-file=foo.dwo < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck --check-prefix=FISSION %s ; Expect no line table entry since there are no functions and file references in this compile unit ; CHECK: .debug_line contents: Index: test/DebugInfo/X86/enum-class.ll =================================================================== --- test/DebugInfo/X86/enum-class.ll +++ test/DebugInfo/X86/enum-class.ll @@ -1,5 +1,5 @@ ; RUN: llc -O0 -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s source_filename = "test/DebugInfo/X86/enum-class.ll" Index: test/DebugInfo/X86/fi-expr.ll =================================================================== --- test/DebugInfo/X86/fi-expr.ll +++ test/DebugInfo/X86/fi-expr.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -o - %s -filetype=obj \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s ; A hand-crafted FrameIndex location with a DW_OP_deref. ; CHECK: DW_TAG_formal_parameter ; fbreg -8, deref Index: test/DebugInfo/X86/fi-piece.ll =================================================================== --- test/DebugInfo/X86/fi-piece.ll +++ test/DebugInfo/X86/fi-piece.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s ; Test that multi-DW_OP_piece expressions are emitted for FI variables. ; ; CHECK: .debug_info contents: Index: test/DebugInfo/X86/fission-cu.ll =================================================================== --- test/DebugInfo/X86/fission-cu.ll +++ test/DebugInfo/X86/fission-cu.ll @@ -1,5 +1,5 @@ ; RUN: llc -split-dwarf-file=baz.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t -; RUN: llvm-dwarfdump -all %t | FileCheck %s +; RUN: llvm-dwarfdump -v -all %t | FileCheck %s ; RUN: llvm-readobj --relocations %t | FileCheck --check-prefix=OBJ %s ; RUN: llvm-objdump -h %t | FileCheck --check-prefix=HDR %s Index: test/DebugInfo/X86/fission-hash.ll =================================================================== --- test/DebugInfo/X86/fission-hash.ll +++ test/DebugInfo/X86/fission-hash.ll @@ -1,5 +1,5 @@ ; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t -; RUN: llvm-dwarfdump -all %t | FileCheck %s +; RUN: llvm-dwarfdump -v -all %t | FileCheck %s ; The source is an empty file, modified to include/retain an 'int' type, since empty CUs are omitted. Index: test/DebugInfo/X86/fission-inline.ll =================================================================== --- test/DebugInfo/X86/fission-inline.ll +++ test/DebugInfo/X86/fission-inline.ll @@ -1,5 +1,5 @@ ; RUN: llc -split-dwarf-file=foo.dwo -O0 < %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj > %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; RUN: llvm-objdump -r %t | FileCheck --check-prefix=RELOCS %s ; Test the emission of gmlt-like inlining information into the skeleton unit. Index: test/DebugInfo/X86/fission-ranges.ll =================================================================== --- test/DebugInfo/X86/fission-ranges.ll +++ test/DebugInfo/X86/fission-ranges.ll @@ -1,5 +1,5 @@ ; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; RUN: llvm-objdump -h %t | FileCheck --check-prefix=HDR %s ; CHECK: .debug_info contents: Index: test/DebugInfo/X86/float_const.ll =================================================================== --- test/DebugInfo/X86/float_const.ll +++ test/DebugInfo/X86/float_const.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s ; from (at -Os): ; void foo() { ; float a = 3.14; Index: test/DebugInfo/X86/float_const_loclist.ll =================================================================== --- test/DebugInfo/X86/float_const_loclist.ll +++ test/DebugInfo/X86/float_const_loclist.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -stop-after=livedebugvalues -o - | FileCheck --check-prefix=SANITY %s -; RUN: llc < %s -filetype=obj | llvm-dwarfdump - | FileCheck %s +; RUN: llc < %s -filetype=obj | llvm-dwarfdump -v - | FileCheck %s ; Test debug_loc support for floating point constants. ; ; Created from clang -O1: Index: test/DebugInfo/X86/frame-register.ll =================================================================== --- test/DebugInfo/X86/frame-register.ll +++ test/DebugInfo/X86/frame-register.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump --debug-info - | FileCheck %s +; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v --debug-info - | FileCheck %s ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_location [DW_FORM_exprloc] (DW_OP_fbreg +0) ; CHECK-NEXT: DW_AT_name {{.*}}"i" Index: test/DebugInfo/X86/generate-odr-hash.ll =================================================================== --- test/DebugInfo/X86/generate-odr-hash.ll +++ test/DebugInfo/X86/generate-odr-hash.ll @@ -1,11 +1,11 @@ ; REQUIRES: object-emission ; RUN: llc < %s -o %t -filetype=obj -O0 -generate-type-units -mtriple=x86_64-unknown-linux-gnu -; RUN: llvm-dwarfdump %t | FileCheck --check-prefix=CHECK --check-prefix=SINGLE %s +; RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=SINGLE %s ; RUN: llvm-readobj -s -t %t | FileCheck --check-prefix=OBJ_SINGLE %s ; RUN: llc < %s -split-dwarf-file=foo.dwo -o %t -filetype=obj -O0 -generate-type-units -mtriple=x86_64-unknown-linux-gnu -; RUN: llvm-dwarfdump %t | FileCheck --check-prefix=CHECK --check-prefix=FISSION %s +; RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=FISSION %s ; RUN: llvm-readobj -s -t %t | FileCheck --check-prefix=OBJ_FISSION %s ; Generated from bar.cpp: Index: test/DebugInfo/X86/gmlt.test =================================================================== --- test/DebugInfo/X86/gmlt.test +++ test/DebugInfo/X86/gmlt.test @@ -1,2 +1,2 @@ -; RUN: llc -O0 -filetype=obj < %S/../Inputs/gmlt.ll -mtriple x86_64-apple-darwin | llvm-dwarfdump - \ +; RUN: llc -O0 -filetype=obj < %S/../Inputs/gmlt.ll -mtriple x86_64-apple-darwin | llvm-dwarfdump -v - \ ; RUN: | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %S/../Inputs/gmlt.ll Index: test/DebugInfo/X86/gnu-public-names-empty.ll =================================================================== --- test/DebugInfo/X86/gnu-public-names-empty.ll +++ test/DebugInfo/X86/gnu-public-names-empty.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; Generated from: Index: test/DebugInfo/X86/gnu-public-names-gmlt.ll =================================================================== --- test/DebugInfo/X86/gnu-public-names-gmlt.ll +++ test/DebugInfo/X86/gnu-public-names-gmlt.ll @@ -1,6 +1,6 @@ -; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s -generate-gnu-dwarf-pub-sections | llvm-dwarfdump - | FileCheck --check-prefix=GPUB --check-prefix=CHECK %s -; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s -generate-dwarf-pub-sections=Enable | llvm-dwarfdump - | FileCheck --check-prefix=PUB --check-prefix=CHECK %s -; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s | llvm-dwarfdump - | FileCheck --check-prefix=NONE %s +; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s -generate-gnu-dwarf-pub-sections | llvm-dwarfdump -v - | FileCheck --check-prefix=GPUB --check-prefix=CHECK %s +; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s -generate-dwarf-pub-sections=Enable | llvm-dwarfdump -v - | FileCheck --check-prefix=PUB --check-prefix=CHECK %s +; RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck --check-prefix=NONE %s ; Generated from: ; void f1(); Index: test/DebugInfo/X86/gnu-public-names-tu.ll =================================================================== --- test/DebugInfo/X86/gnu-public-names-tu.ll +++ test/DebugInfo/X86/gnu-public-names-tu.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-type-units -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-type-units -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; Generated from: Index: test/DebugInfo/X86/gnu-public-names.ll =================================================================== --- test/DebugInfo/X86/gnu-public-names.ll +++ test/DebugInfo/X86/gnu-public-names.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections < %s | FileCheck -check-prefix=ASM %s -; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -mtriple=x86_64-pc-linux-gnu -generate-gnu-dwarf-pub-sections -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; ModuleID = 'dwarf-public-names.cpp' ; ; Generated from: Index: test/DebugInfo/X86/inline-member-function.ll =================================================================== --- test/DebugInfo/X86/inline-member-function.ll +++ test/DebugInfo/X86/inline-member-function.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; From source: ; struct foo { Index: test/DebugInfo/X86/inline-namespace.ll =================================================================== --- test/DebugInfo/X86/inline-namespace.ll +++ test/DebugInfo/X86/inline-namespace.ll @@ -1,4 +1,4 @@ -; RUN: %llc_dwarf %s -o - -filetype=obj | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf %s -o - -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Generated from: ; namespace normal { inline namespace inlined { int i; } } ; Check that an inline namespace is emitted with DW_AT_export_symbols Index: test/DebugInfo/X86/inlined-formal-parameter.ll =================================================================== --- test/DebugInfo/X86/inlined-formal-parameter.ll +++ test/DebugInfo/X86/inlined-formal-parameter.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=obj -o %t.o %s -; RUN: llvm-dwarfdump %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v %t.o | FileCheck %s ; Testcase generated using 'clang -g -O2 -S -emit-llvm' from the following: ;; void sink(void); Index: test/DebugInfo/X86/lexical-block-file-inline.ll =================================================================== --- test/DebugInfo/X86/lexical-block-file-inline.ll +++ test/DebugInfo/X86/lexical-block-file-inline.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj -O0 < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ;; This test checks that Inlined DILexicalBlockFile with local decl entry ;; is skipped and only one DW_TAG_lexical_block is generated. Index: test/DebugInfo/X86/lexical_block.ll =================================================================== --- test/DebugInfo/X86/lexical_block.ll +++ test/DebugInfo/X86/lexical_block.ll @@ -1,9 +1,9 @@ ; REQUIRES: object-emission ; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V4 %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V4 %s ; RUN: llc -mtriple=x86_64-linux -dwarf-version=3 -O0 -filetype=obj < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V3 %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V3 %s ; Check that we emit DW_TAG_lexical_block and that it has the right encoding ; depending on the dwarf version. Index: test/DebugInfo/X86/line-info.ll =================================================================== --- test/DebugInfo/X86/line-info.ll +++ test/DebugInfo/X86/line-info.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj -O0 < %s > %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; CHECK: [[FILEID:[0-9]+]]]{{.*}}list0.h ; CHECK: [[FILEID]] 0 1 0 0 is_stmt{{$}} Index: test/DebugInfo/X86/linkage-name.ll =================================================================== --- test/DebugInfo/X86/linkage-name.ll +++ test/DebugInfo/X86/linkage-name.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-macosx %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; CHECK: DW_TAG_subprogram [9] * ; CHECK-NOT: DW_AT_{{(MIPS_)?}}linkage_name Index: test/DebugInfo/X86/low-pc-cu.ll =================================================================== --- test/DebugInfo/X86/low-pc-cu.ll +++ test/DebugInfo/X86/low-pc-cu.ll @@ -1,7 +1,7 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V4 +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V4 ; RUN: llc -mtriple=x86_64-apple-darwin -filetype=obj -dwarf-version=3 < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V3 +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V3 ; Check that we use DW_AT_low_pc and that it has the right encoding depending Index: test/DebugInfo/X86/main-file-name.s =================================================================== --- test/DebugInfo/X86/main-file-name.s +++ test/DebugInfo/X86/main-file-name.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -main-file-name foo.S -g -o %t %s -// RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +// RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s // CHECK: DW_TAG_compile_unit [1] // CHECK-NOT: DW_TAG_ Index: test/DebugInfo/X86/misched-dbg-value.ll =================================================================== --- test/DebugInfo/X86/misched-dbg-value.ll +++ test/DebugInfo/X86/misched-dbg-value.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -mtriple=x86_64-apple-darwin -filetype=obj -o %t -enable-misched -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; rdar://13183203 ; Make sure when misched is enabled, we still have location information for Index: test/DebugInfo/X86/multiple-at-const-val.ll =================================================================== --- test/DebugInfo/X86/multiple-at-const-val.ll +++ test/DebugInfo/X86/multiple-at-const-val.ll @@ -1,5 +1,5 @@ ; RUN: llc -O0 %s -mtriple=x86_64-apple-darwin -filetype=obj -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; rdar://13071590 ; Check we are not emitting mutliple AT_const_value for a single member. Index: test/DebugInfo/X86/nondefault-subrange-array.ll =================================================================== --- test/DebugInfo/X86/nondefault-subrange-array.ll +++ test/DebugInfo/X86/nondefault-subrange-array.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -O0 -filetype=obj -o %t < %s -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s source_filename = "test/DebugInfo/X86/nondefault-subrange-array.ll" Index: test/DebugInfo/X86/objc-property-void.ll =================================================================== --- test/DebugInfo/X86/objc-property-void.ll +++ test/DebugInfo/X86/objc-property-void.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=obj -o %t.o < %s >/dev/null 2>&1 -; RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s ; CHECK: DW_TAG_structure_type ; CHECK: DW_AT_APPLE_objc_complete_type Index: test/DebugInfo/X86/op_deref.ll =================================================================== --- test/DebugInfo/X86/op_deref.ll +++ test/DebugInfo/X86/op_deref.ll @@ -1,8 +1,8 @@ ; RUN: llc -O0 -mtriple=x86_64-apple-darwin < %s -filetype=obj \ -; RUN: | llvm-dwarfdump -debug-info - \ +; RUN: | llvm-dwarfdump -v -debug-info - \ ; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=DWARF4 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin < %s -filetype=obj -dwarf-version=3 \ -; RUN: | llvm-dwarfdump -debug-info - \ +; RUN: | llvm-dwarfdump -v -debug-info - \ ; RUN: | FileCheck %s -check-prefix=CHECK -check-prefix=DWARF3 ; DWARF4: DW_AT_location [DW_FORM_sec_offset] (0x00000000 Index: test/DebugInfo/X86/parameters.ll =================================================================== --- test/DebugInfo/X86/parameters.ll +++ test/DebugInfo/X86/parameters.ll @@ -1,7 +1,7 @@ ; REQUIRES: object-emission ; ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -O0 -filetype=obj < %s > %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; Test case derived from compiling the following source with clang -g: ; Index: test/DebugInfo/X86/partial-constant.ll =================================================================== --- test/DebugInfo/X86/partial-constant.ll +++ test/DebugInfo/X86/partial-constant.ll @@ -1,4 +1,4 @@ -; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s +; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -v - | FileCheck %s ; Generated at -O2 from: ; bool c(); ; void f(); Index: test/DebugInfo/X86/pieces-2.ll =================================================================== --- test/DebugInfo/X86/pieces-2.ll +++ test/DebugInfo/X86/pieces-2.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s ; ; // Compile with -O1 ; typedef struct { Index: test/DebugInfo/X86/pieces-3.ll =================================================================== --- test/DebugInfo/X86/pieces-3.ll +++ test/DebugInfo/X86/pieces-3.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s ; ; // Compile with -O1 ; typedef struct { Index: test/DebugInfo/X86/pr11300.ll =================================================================== --- test/DebugInfo/X86/pr11300.ll +++ test/DebugInfo/X86/pr11300.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; test that the DW_AT_specification is a back edge in the file. Index: test/DebugInfo/X86/ref_addr_relocation.ll =================================================================== --- test/DebugInfo/X86/ref_addr_relocation.ll +++ test/DebugInfo/X86/ref_addr_relocation.ll @@ -1,22 +1,22 @@ ; RUN: llc -filetype=asm -O0 -mtriple=x86_64-linux-gnu < %s -dwarf-version 2 | FileCheck -check-prefixes=CHECK,ELF-ASM %s ; RUN: llc -filetype=obj -O0 %s -mtriple=x86_64-linux-gnu -o %t-2 -dwarf-version 2 -; RUN: llvm-dwarfdump %t-2 | FileCheck %s -check-prefix=CHECK-DWARF +; RUN: llvm-dwarfdump -v %t-2 | FileCheck %s -check-prefix=CHECK-DWARF ; RUN: llc -filetype=obj -O0 %s -mtriple=x86_64-linux-gnu -o %t-4 -dwarf-version 2 -; RUN: llvm-dwarfdump %t-4 | FileCheck %s -check-prefix=CHECK-DWARF +; RUN: llvm-dwarfdump -v %t-4 | FileCheck %s -check-prefix=CHECK-DWARF ; RUN: llc -filetype=asm -O0 -mtriple=x86_64-apple-darwin < %s -dwarf-version 2 | FileCheck -check-prefixes=CHECK,DARWIN-ASM2 %s ; RUN: llc -filetype=asm -O0 -mtriple=x86_64-apple-darwin < %s -dwarf-version 4 | FileCheck -check-prefixes=CHECK,DARWIN-ASM4 %s ; RUN: llc -filetype=obj %s -mtriple=x86_64-apple-darwin -o %t2-2 -dwarf-version 2 -; RUN: llvm-dwarfdump %t2-2 | FileCheck %s -check-prefix=CHECK-DWARF +; RUN: llvm-dwarfdump -v %t2-2 | FileCheck %s -check-prefix=CHECK-DWARF ; RUN: llc -filetype=obj %s -mtriple=x86_64-apple-darwin -o %t2-4 -dwarf-version 4 -; RUN: llvm-dwarfdump %t2-4 | FileCheck %s -check-prefix=CHECK-DWARF +; RUN: llvm-dwarfdump -v %t2-4 | FileCheck %s -check-prefix=CHECK-DWARF ; RUN: llc -filetype=asm -O0 -mtriple=x86_64-pc-win32 < %s -dwarf-version 2 | FileCheck -check-prefixes=CHECK,COFF-ASM %s ; RUN: llc -filetype=asm -O0 -mtriple=x86_64-pc-win32 < %s -dwarf-version 4 | FileCheck -check-prefixes=CHECK,COFF-ASM %s ; RUN: llc -filetype=obj -O0 %s -mtriple=x86_64-pc-win32 -o %t3-2 -dwarf-version 2 -; RUN: llvm-dwarfdump %t3-2 | FileCheck %s -check-prefix=CHECK-DWARF2 +; RUN: llvm-dwarfdump -v %t3-2 | FileCheck %s -check-prefix=CHECK-DWARF2 ; RUN: llc -filetype=obj -O0 %s -mtriple=x86_64-pc-win32 -o %t3-4 -dwarf-version 4 -; RUN: llvm-dwarfdump %t3-4 | FileCheck %s -check-prefix=CHECK-DWARF +; RUN: llvm-dwarfdump -v %t3-4 | FileCheck %s -check-prefix=CHECK-DWARF ; Testing case generated from: ; clang++ tu1.cpp tu2.cpp -g -emit-llvm -c Index: test/DebugInfo/X86/reference-argument.ll =================================================================== --- test/DebugInfo/X86/reference-argument.ll +++ test/DebugInfo/X86/reference-argument.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-macosx10.9.0 -filetype=obj -O0 < %s \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s ; ModuleID = 'aggregate-indirect-arg.cpp' ; extracted from debuginfo-tests/aggregate-indirect-arg.cpp Index: test/DebugInfo/X86/single-dbg_value.ll =================================================================== --- test/DebugInfo/X86/single-dbg_value.ll +++ test/DebugInfo/X86/single-dbg_value.ll @@ -1,7 +1,7 @@ ; RUN: %llc_dwarf -stop-after=livedebugvalues -o - %s \ ; RUN: | FileCheck %s --check-prefix=SANITY ; RUN: %llc_dwarf -march=x86-64 -o - %s -filetype=obj \ -; RUN: | llvm-dwarfdump -all - | FileCheck %s +; RUN: | llvm-dwarfdump -v -all - | FileCheck %s ; ; CHECK: .debug_info contents: ; CHECK: DW_TAG_variable Index: test/DebugInfo/X86/single-fi.ll =================================================================== --- test/DebugInfo/X86/single-fi.ll +++ test/DebugInfo/X86/single-fi.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin -o - %s -filetype=obj \ -; RUN: | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s ; A single FI location. This used to trigger an assertion in debug libstdc++. ; CHECK: DW_TAG_formal_parameter ; fbreg -8 Index: test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll =================================================================== --- test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll +++ test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll @@ -1,12 +1,12 @@ ; RUN: llc -mtriple=x86_64-linux -split-dwarf-cross-cu-references -split-dwarf-file=foo.dwo -filetype=obj -o %t < %s ; RUN: llvm-objdump -r %t | FileCheck %s -; RUN: llvm-dwarfdump -debug-info-dwo %t | FileCheck --check-prefix=ALL --check-prefix=INFO --check-prefix=DWO --check-prefix=CROSS %s -; RUN: llvm-dwarfdump -debug-info %t | FileCheck --check-prefix=ALL --check-prefix=INFO %s +; RUN: llvm-dwarfdump -v -debug-info-dwo %t | FileCheck --check-prefix=ALL --check-prefix=INFO --check-prefix=DWO --check-prefix=CROSS %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck --check-prefix=ALL --check-prefix=INFO %s ; RUN: llc -mtriple=x86_64-linux -split-dwarf-file=foo.dwo -filetype=obj -o %t < %s ; RUN: llvm-objdump -r %t | FileCheck %s -; RUN: llvm-dwarfdump -debug-info-dwo %t | FileCheck --check-prefix=ALL --check-prefix=DWO --check-prefix=NOCROSS %s -; RUN: llvm-dwarfdump -debug-info %t | FileCheck --check-prefix=ALL --check-prefix=INFO %s +; RUN: llvm-dwarfdump -v -debug-info-dwo %t | FileCheck --check-prefix=ALL --check-prefix=DWO --check-prefix=NOCROSS %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck --check-prefix=ALL --check-prefix=INFO %s ; Testing cross-CU references for types, subprograms, and variables ; Built from code something like this: Index: test/DebugInfo/X86/split-global.ll =================================================================== --- test/DebugInfo/X86/split-global.ll +++ test/DebugInfo/X86/split-global.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o - -filetype=obj | \ -; RUN: llvm-dwarfdump --debug-info - | FileCheck %s +; RUN: llvm-dwarfdump -v --debug-info - | FileCheck %s ; ; Test emitting debug info for fragmented global values. ; This is a handcrafted example of an SROAed global variable. Index: test/DebugInfo/X86/sret.ll =================================================================== --- test/DebugInfo/X86/sret.ll +++ test/DebugInfo/X86/sret.ll @@ -1,13 +1,13 @@ ; RUN: llc -split-dwarf-file=foo.dwo -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t -; RUN: llvm-dwarfdump -all %t | FileCheck %s --check-prefix=CHECK-DWO +; RUN: llvm-dwarfdump -v -all %t | FileCheck %s --check-prefix=CHECK-DWO ; Based on the debuginfo-tests/sret.cpp code. ; CHECK-DWO: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1) ; CHECK-DWO: DW_AT_GNU_dwo_id [DW_FORM_data8] (0x51ac5644b1937aa1) -; RUN: llc -O0 -fast-isel=true -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s -; RUN: llc -O0 -fast-isel=false -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s +; RUN: llc -O0 -fast-isel=true -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s +; RUN: llc -O0 -fast-isel=false -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | llvm-dwarfdump -v - | FileCheck %s ; CHECK: _ZN1B9AInstanceEv ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_location [DW_FORM_sec_offset] (0x00000000 Index: test/DebugInfo/X86/stack-value-piece.ll =================================================================== --- test/DebugInfo/X86/stack-value-piece.ll +++ test/DebugInfo/X86/stack-value-piece.ll @@ -1,4 +1,4 @@ -; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s +; RUN: llc %s -filetype=obj -o - | llvm-dwarfdump -v - | FileCheck %s ; Test that DW_OP_piece is emitted for constants. ; ; // Generated from: Index: test/DebugInfo/X86/static_member_array.ll =================================================================== --- test/DebugInfo/X86/static_member_array.ll +++ test/DebugInfo/X86/static_member_array.ll @@ -1,4 +1,4 @@ -; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s ; Generated from: ; ; struct A { Index: test/DebugInfo/X86/stmt-list-multiple-compile-units.ll =================================================================== --- test/DebugInfo/X86/stmt-list-multiple-compile-units.ll +++ test/DebugInfo/X86/stmt-list-multiple-compile-units.ll @@ -1,7 +1,7 @@ ; RUN: llc -O0 %s -mtriple=x86_64-apple-darwin -filetype=obj -o %t -; RUN: llvm-dwarfdump %t | FileCheck %s +; RUN: llvm-dwarfdump -v %t | FileCheck %s ; RUN: llc -O0 %s -mtriple=x86_64-apple-darwin -filetype=obj -o %t -dwarf-version=3 -; RUN: llvm-dwarfdump %t | FileCheck %s -check-prefix=DWARF3 +; RUN: llvm-dwarfdump -v %t | FileCheck %s -check-prefix=DWARF3 ; RUN: llc < %s -O0 -mtriple=x86_64-apple-macosx10.7 | FileCheck %s -check-prefix=ASM ; rdar://13067005 Index: test/DebugInfo/X86/subrange-type.ll =================================================================== --- test/DebugInfo/X86/subrange-type.ll +++ test/DebugInfo/X86/subrange-type.ll @@ -1,5 +1,5 @@ ; RUN: llc -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t -; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s ; Make sure that the base type from the subrange type has a name. ; CHECK: DW_TAG_subrange_type Index: test/DebugInfo/X86/subregisters.ll =================================================================== --- test/DebugInfo/X86/subregisters.ll +++ test/DebugInfo/X86/subregisters.ll @@ -1,5 +1,5 @@ ; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t.o -filetype=obj -O0 -; RUN: llvm-dwarfdump %t.o | FileCheck %s +; RUN: llvm-dwarfdump -v %t.o | FileCheck %s ; ; Test that on x86_64, the 32-bit subregister esi is emitted as ; subregister of the 64-bit rsi. Index: test/DebugInfo/X86/template.ll =================================================================== --- test/DebugInfo/X86/template.ll +++ test/DebugInfo/X86/template.ll @@ -1,6 +1,6 @@ ; REQUIRES: object-emission -; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; IR generated with `clang++ -g -emit-llvm -S` from the following code: ; template class y, decltype(nullptr) n, int ...z> int func() { return 3; } Index: test/DebugInfo/X86/this-stack_value.ll =================================================================== --- test/DebugInfo/X86/this-stack_value.ll +++ test/DebugInfo/X86/this-stack_value.ll @@ -1,5 +1,5 @@ ; RUN: llc -filetype=asm -o - %s | FileCheck %s --check-prefix=ASM -; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump --debug-info - | FileCheck %s +; RUN: llc -filetype=obj -o - %s | llvm-dwarfdump -v --debug-info - | FileCheck %s ; ; Generated at -O2 from: ; struct B; Index: test/DebugInfo/X86/type_units_with_addresses.ll =================================================================== --- test/DebugInfo/X86/type_units_with_addresses.ll +++ test/DebugInfo/X86/type_units_with_addresses.ll @@ -1,10 +1,10 @@ ; REQUIRES: object-emission ; RUN: llc -split-dwarf-file=foo.dwo -filetype=obj -O0 -generate-type-units -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck %s +; RUN: | llvm-dwarfdump -v - | FileCheck %s ; RUN: llc -filetype=obj -O0 -generate-type-units -mtriple=x86_64-unknown-linux-gnu < %s \ -; RUN: | llvm-dwarfdump - | FileCheck --check-prefix=SINGLE %s +; RUN: | llvm-dwarfdump -v - | FileCheck --check-prefix=SINGLE %s ; Test case built from: ;int i; Index: test/DebugInfo/X86/union-const.ll =================================================================== --- test/DebugInfo/X86/union-const.ll +++ test/DebugInfo/X86/union-const.ll @@ -1,4 +1,4 @@ -; RUN: llc -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llc -filetype=obj < %s | llvm-dwarfdump -v -debug-info - | FileCheck %s ; CHECK: DW_TAG_variable ; CHECK-NEXT: DW_AT_const_value [DW_FORM_udata] (0) ; CHECK-NEXT: DW_AT_name {{.*}}"a" Index: test/DebugInfo/arm-relocs.test =================================================================== --- test/DebugInfo/arm-relocs.test +++ test/DebugInfo/arm-relocs.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/arm-relocs.elf-arm | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/arm-relocs.elf-arm | FileCheck %s ; CHECK: debug_info contents ; CHECK: DW_TAG_enumeration_type Index: test/DebugInfo/dwarfdump-accel.test =================================================================== --- test/DebugInfo/dwarfdump-accel.test +++ test/DebugInfo/dwarfdump-accel.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s RUN: not llvm-dwarfdump -verify %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s --check-prefix=VERIFY Gather some DIE indexes to verify the accelerator table contents. Index: test/DebugInfo/dwarfdump-dwp.test =================================================================== --- test/DebugInfo/dwarfdump-dwp.test +++ test/DebugInfo/dwarfdump-dwp.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-dwp.x86_64.o | FileCheck %s ; Testing the following simple dwp file: ; a.cpp: Index: test/DebugInfo/dwarfdump-header.test =================================================================== --- test/DebugInfo/dwarfdump-header.test +++ test/DebugInfo/dwarfdump-header.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-header.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-header.elf-x86-64 | FileCheck %s The input file is hand-coded assembler to generate all the units, so we're willing to make exact checks for offsets and such. Index: test/DebugInfo/dwarfdump-line-dwo.test =================================================================== --- test/DebugInfo/dwarfdump-line-dwo.test +++ test/DebugInfo/dwarfdump-line-dwo.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-line-dwo.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-line-dwo.elf-x86-64 | FileCheck %s CHECK: .debug_line.dwo contents: CHECK: version: 4 Index: test/DebugInfo/dwarfdump-macho-universal.test =================================================================== --- test/DebugInfo/dwarfdump-macho-universal.test +++ test/DebugInfo/dwarfdump-macho-universal.test @@ -1,5 +1,5 @@ Reuse a test input from llvm-dsymutil, it's perfect for what we want to exercise -RUN: llvm-dwarfdump %S/Inputs/fat-test.o --debug-info | FileCheck %s +RUN: llvm-dwarfdump -v %S/Inputs/fat-test.o --debug-info | FileCheck %s CHECK: fat-test.o (x86_64): file format Mach-O 64-bit x86-64 CHECK: DW_TAG_variable Index: test/DebugInfo/dwarfdump-objc.test =================================================================== --- test/DebugInfo/dwarfdump-objc.test +++ test/DebugInfo/dwarfdump-objc.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-objc.x86_64.o | FileCheck %s CHECK: .debug_info contents: Index: test/DebugInfo/dwarfdump-ranges.test =================================================================== --- test/DebugInfo/dwarfdump-ranges.test +++ test/DebugInfo/dwarfdump-ranges.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test4.elf-x86-64 | FileCheck %s CHECK: .debug_info contents: CHECK: DW_TAG_compile_unit Index: test/DebugInfo/dwarfdump-str-offsets-dwp.test =================================================================== --- test/DebugInfo/dwarfdump-str-offsets-dwp.test +++ test/DebugInfo/dwarfdump-str-offsets-dwp.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-dwp.x86_64.o | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-dwp.x86_64.o | FileCheck %s ; Verify that the correct strings from each unit are displayed and that the ; index for the .debug_str_offsets section has the right values. Index: test/DebugInfo/dwarfdump-str-offsets-invalid.test =================================================================== --- test/DebugInfo/dwarfdump-str-offsets-invalid.test +++ test/DebugInfo/dwarfdump-str-offsets-invalid.test @@ -1,14 +1,14 @@ ; Verify that llvm-dwarfdump handles invalid string offset tables. -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-1.x86_64.o | \ +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-invalid-1.x86_64.o | \ RUN: FileCheck --check-prefix=INVALIDCONTRIB %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-2.x86_64.o | \ +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-invalid-2.x86_64.o | \ RUN: FileCheck --check-prefix=INVALIDCONTRIB %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-3.x86_64.o | \ +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-invalid-3.x86_64.o | \ RUN: FileCheck --check-prefix=INVALIDCONTRIB %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-4.x86_64.o | \ +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-invalid-4.x86_64.o | \ RUN: FileCheck --check-prefix=INVALIDLENGTH %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-5.x86_64.o | \ +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-invalid-5.x86_64.o | \ RUN: FileCheck --check-prefix=INVALIDSECTIONLENGTH %s INVALIDCONTRIB: .debug_str_offsets contents: Index: test/DebugInfo/dwarfdump-str-offsets.test =================================================================== --- test/DebugInfo/dwarfdump-str-offsets.test +++ test/DebugInfo/dwarfdump-str-offsets.test @@ -1,6 +1,6 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets.x86_64.o | FileCheck --check-prefix=COMMON \ +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets.x86_64.o | FileCheck --check-prefix=COMMON \ RUN: --check-prefix=SPLIT %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-macho.o | FileCheck --check-prefix=COMMON %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-str-offsets-macho.o | FileCheck --check-prefix=COMMON %s ; We are using a hand-constructed object file and are interest in the correct ; diplay of the DW_str_offsetsbase attribute, the correct display of strings Index: test/DebugInfo/dwarfdump-type-units.test =================================================================== --- test/DebugInfo/dwarfdump-type-units.test +++ test/DebugInfo/dwarfdump-type-units.test @@ -1,6 +1,6 @@ -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=CHECK -check-prefix=LONG %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-type-units.elf-x86-64 -summarize-types | FileCheck -check-prefix=CHECK -check-prefix=SHORT %s -RUN: llvm-dwarfdump -debug-types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=CHECK -check-prefix=LONG %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-type-units.elf-x86-64 -summarize-types | FileCheck -check-prefix=CHECK -check-prefix=SHORT %s +RUN: llvm-dwarfdump -v -debug-types %p/Inputs/dwarfdump-type-units.elf-x86-64 | FileCheck -check-prefix=TYPES %s CHECK: debug_info contents: Index: test/DebugInfo/dwarfdump-zlib.test =================================================================== --- test/DebugInfo/dwarfdump-zlib.test +++ test/DebugInfo/dwarfdump-zlib.test @@ -1,8 +1,8 @@ REQUIRES: zlib -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test-zlib.elf-x86-64 | FileCheck %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test-zlib.o.elf-x86-64 | FileCheck %s -RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlib.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlib.o.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 | FileCheck %s CHECK: .debug_abbrev contents Index: test/DebugInfo/typeunit-header.test =================================================================== --- test/DebugInfo/typeunit-header.test +++ test/DebugInfo/typeunit-header.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump %p/Inputs/typeunit-header.elf-x86-64 | FileCheck %s +RUN: llvm-dwarfdump -v %p/Inputs/typeunit-header.elf-x86-64 | FileCheck %s This is testing a bugfix where parsing the type unit header was not taking the unit's intial length field into account when validating. Index: test/Linker/type-unique-odr-a.ll =================================================================== --- test/Linker/type-unique-odr-a.ll +++ test/Linker/type-unique-odr-a.ll @@ -2,11 +2,11 @@ ; ; RUN: llvm-link %s %p/type-unique-odr-b.ll -S -o - \ ; RUN: | %llc_dwarf -dwarf-linkage-names=All -filetype=obj -O0 \ -; RUN: | llvm-dwarfdump -debug-info - \ +; RUN: | llvm-dwarfdump -v -debug-info - \ ; RUN: | FileCheck %s ; RUN: llvm-link %p/type-unique-odr-b.ll %s -S -o - \ ; RUN: | %llc_dwarf -dwarf-linkage-names=All -filetype=obj -O0 \ -; RUN: | llvm-dwarfdump -debug-info - \ +; RUN: | llvm-dwarfdump -v -debug-info - \ ; RUN: | FileCheck %s ; ; Test ODR-based type uniquing for C++ class members. Index: test/Linker/type-unique-simple-a.ll =================================================================== --- test/Linker/type-unique-simple-a.ll +++ test/Linker/type-unique-simple-a.ll @@ -3,7 +3,7 @@ ; RUN: llvm-link %s %p/type-unique-simple-b.ll -S -o %t ; RUN: cat %t | FileCheck %s -check-prefix=LINK ; RUN: %llc_dwarf -filetype=obj -O0 < %t > %t2 -; RUN: llvm-dwarfdump -debug-info %t2 | FileCheck %s +; RUN: llvm-dwarfdump -v -debug-info %t2 | FileCheck %s ; Make sure the backend generates a single DIE and uses ref_addr. ; CHECK: 0x[[BASE:.*]]: DW_TAG_structure_type Index: test/Linker/type-unique-simple2-a.ll =================================================================== --- test/Linker/type-unique-simple2-a.ll +++ test/Linker/type-unique-simple2-a.ll @@ -1,6 +1,6 @@ ; REQUIRES: default_triple, object-emission ; -; RUN: llvm-link %s %p/type-unique-simple2-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llvm-link %s %p/type-unique-simple2-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -v -debug-info - | FileCheck %s ; ; Tests for a merge error where attributes are inserted twice into the same DIE. ; Index: test/Linker/type-unique-simple2.ll =================================================================== --- test/Linker/type-unique-simple2.ll +++ test/Linker/type-unique-simple2.ll @@ -4,4 +4,4 @@ ; RUN: llvm-link %S/Inputs/type-unique-simple2-a.ll %S/Inputs/type-unique-simple2-b.ll -S -o %t ; RUN: cat %t | FileCheck %S/Inputs/type-unique-simple2-a.ll -check-prefix=LINK ; RUN: %llc_dwarf -filetype=obj -O0 < %t > %t2 -; RUN: llvm-dwarfdump -debug-info %t2 | FileCheck %S/Inputs/type-unique-simple2-a.ll +; RUN: llvm-dwarfdump -v -debug-info %t2 | FileCheck %S/Inputs/type-unique-simple2-a.ll Index: test/Linker/type-unique-type-array-a.ll =================================================================== --- test/Linker/type-unique-type-array-a.ll +++ test/Linker/type-unique-type-array-a.ll @@ -1,6 +1,6 @@ ; REQUIRES: default_triple, object-emission ; -; RUN: llvm-link %s %p/type-unique-type-array-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-info - | FileCheck %s +; RUN: llvm-link %s %p/type-unique-type-array-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -v -debug-info - | FileCheck %s ; ; rdar://problem/17628609 ; Index: test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s =================================================================== --- test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s +++ test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s @@ -1,5 +1,5 @@ // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp -dwarf-version 2 2>&1 | FileCheck -check-prefix MESSAGES %s -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s .section .text, "ax" Index: test/MC/ARM/dwarf-asm-multiple-sections.s =================================================================== --- test/MC/ARM/dwarf-asm-multiple-sections.s +++ test/MC/ARM/dwarf-asm-multiple-sections.s @@ -1,11 +1,11 @@ // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 5 -fdebug-compilation-dir=/tmp -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF -check-prefix DWARF45 %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF -check-prefix DWARF45 %s // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC -check-prefix RELOC5 %s // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF -check-prefix DWARF45 %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF -check-prefix DWARF45 %s // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC -check-prefix RELOC4 %s // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 3 -fdebug-compilation-dir=/tmp -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF -check-prefix DWARF3 %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF -check-prefix DWARF3 %s // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 2 2>&1 | FileCheck -check-prefix VERSION %s // RUN: not llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 1 2>&1 | FileCheck -check-prefix DWARF1 %s // RUN: not llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -dwarf-version 6 2>&1 | FileCheck -check-prefix DWARF6 %s Index: test/MC/ARM/dwarf-asm-no-code.s =================================================================== --- test/MC/ARM/dwarf-asm-no-code.s +++ test/MC/ARM/dwarf-asm-no-code.s @@ -1,5 +1,5 @@ // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s // If there is no code in an assembly file, no debug info is produced Index: test/MC/ARM/dwarf-asm-nonstandard-section.s =================================================================== --- test/MC/ARM/dwarf-asm-nonstandard-section.s +++ test/MC/ARM/dwarf-asm-nonstandard-section.s @@ -1,5 +1,5 @@ // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s .section foo, "ax" Index: test/MC/ARM/dwarf-asm-single-section.s =================================================================== --- test/MC/ARM/dwarf-asm-single-section.s +++ test/MC/ARM/dwarf-asm-single-section.s @@ -1,5 +1,5 @@ // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp -// RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF %s +// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s .section .text, "ax" Index: test/MC/ARM/dwarf-cfi-initial-state.s =================================================================== --- test/MC/ARM/dwarf-cfi-initial-state.s +++ test/MC/ARM/dwarf-cfi-initial-state.s @@ -1,5 +1,5 @@ # RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o - \ -# RUN: | llvm-dwarfdump - | FileCheck %s +# RUN: | llvm-dwarfdump -v - | FileCheck %s _proc: .cfi_sections .debug_frame @@ -10,7 +10,7 @@ # CHECK: .debug_frame contents: # CHECK: CIE # CHECK-NOT: DW_CFA -# When llvm-dwarfdump prints the full info for the DW_CFA_def_cfa +# When llvm-dwarfdump -v prints the full info for the DW_CFA_def_cfa # field, we can check that here too. # CHECK: DW_CFA_def_cfa: # The following 2 DW_CFA_nop instructions are "padding" Index: test/MC/ELF/cfi-version.ll =================================================================== --- test/MC/ELF/cfi-version.ll +++ test/MC/ELF/cfi-version.ll @@ -1,7 +1,7 @@ -; RUN: %llc_dwarf %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF2 -; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF3 -; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4 -; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF4 +; RUN: %llc_dwarf %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF2 +; RUN: %llc_dwarf %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF3 +; RUN: %llc_dwarf %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 +; RUN: %llc_dwarf %s -o - -dwarf-version 5 -filetype=obj | llvm-dwarfdump -v - | FileCheck %s --check-prefix=DWARF4 ; .debug_frame is not emitted for targeting Windows x64. ; REQUIRES: debug_frame Index: test/MC/ELF/comp-dir.s =================================================================== --- test/MC/ELF/comp-dir.s +++ test/MC/ELF/comp-dir.s @@ -1,6 +1,6 @@ // REQUIRES: shell // RUN: llvm-mc -triple=x86_64-linux-unknown -g -fdebug-compilation-dir=/test/comp/dir %s -filetype=obj -o %t.o -// RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s +// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck %s // CHECK: DW_AT_comp_dir [DW_FORM_string] ("{{([A-Za-z]:.*)?}}/test/comp/dir") @@ -8,7 +8,7 @@ // RUN: ln -sf %t.foo %t.bar // RUN: cd %t.foo // RUN: env PWD=%t.bar llvm-mc -triple=x86_64-linux-unknown -g %s -filetype=obj -o %t.o -// RUN: llvm-dwarfdump -debug-info %t.o | FileCheck --check-prefix=PWD %s +// RUN: llvm-dwarfdump -v -debug-info %t.o | FileCheck --check-prefix=PWD %s // PWD: DW_AT_comp_dir [DW_FORM_string] ("{{.*}}.bar") Index: test/MC/MachO/gen-dwarf-producer.s =================================================================== --- test/MC/MachO/gen-dwarf-producer.s +++ test/MC/MachO/gen-dwarf-producer.s @@ -1,5 +1,5 @@ // RUN: env DEBUG_PRODUCER="my producer" llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t -// RUN: llvm-dwarfdump -debug-info %t | FileCheck %s +// RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s .globl _bar _bar: Index: test/MC/MachO/gen-dwarf.s =================================================================== --- test/MC/MachO/gen-dwarf.s +++ test/MC/MachO/gen-dwarf.s @@ -1,5 +1,5 @@ // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t -// RUN: llvm-dwarfdump -all %t | FileCheck %s +// RUN: llvm-dwarfdump -v -all %t | FileCheck %s .globl _bar _bar: Index: test/Object/Mips/reloc-visit.test =================================================================== --- test/Object/Mips/reloc-visit.test +++ test/Object/Mips/reloc-visit.test @@ -1,4 +1,4 @@ -RUN: llvm-dwarfdump -debug-info %p/../Inputs/elf-mip64-reloc.o 2>&1 | \ +RUN: llvm-dwarfdump -v -debug-info %p/../Inputs/elf-mip64-reloc.o 2>&1 | \ RUN: FileCheck %s CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000037] = "") Index: test/tools/dsymutil/X86/basic-linking-bundle.test =================================================================== --- test/tools/dsymutil/X86/basic-linking-bundle.test +++ test/tools/dsymutil/X86/basic-linking-bundle.test @@ -5,15 +5,15 @@ RUN: llvm-dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 Check that the object file in the bundle exists and is sane: -RUN: llvm-dwarfdump %t/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test +RUN: llvm-dwarfdump -v %t/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test -Check that llvm-dwarfdump recognizes the bundle as a dSYM: -RUN: llvm-dwarfdump %t/basic.macho.x86_64.dSYM | FileCheck %S/basic-linking-x86.test +Check that llvm-dwarfdump -v recognizes the bundle as a dSYM: +RUN: llvm-dwarfdump -v %t/basic.macho.x86_64.dSYM | FileCheck %S/basic-linking-x86.test RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist RUN: llvm-dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM -RUN: llvm-dwarfdump %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test +RUN: llvm-dwarfdump -v %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist CHECK: Index: test/tools/dsymutil/X86/basic-linking-x86.test =================================================================== --- test/tools/dsymutil/X86/basic-linking-x86.test +++ test/tools/dsymutil/X86/basic-linking-x86.test @@ -1,12 +1,12 @@ RUN: cat %p/../Inputs/basic.macho.x86_64 > %t1 RUN: llvm-dsymutil -f -oso-prepend-path=%p/.. %t1 -RUN: llvm-dwarfdump %t1.dwarf | FileCheck %s +RUN: llvm-dwarfdump -v %t1.dwarf | FileCheck %s RUN: llvm-dsymutil -f -o %t2 -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 -RUN: llvm-dwarfdump %t2 | FileCheck %s -RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=BASIC -RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-archive.macho.x86_64 | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=ARCHIVE -RUN: llvm-dsymutil -dump-debug-map -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 | llvm-dsymutil -f -y -o - - | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=BASIC -RUN: llvm-dsymutil -dump-debug-map -oso-prepend-path=%p/.. %p/../Inputs/basic-archive.macho.x86_64 | llvm-dsymutil -f -o - -y - | llvm-dwarfdump - | FileCheck %s --check-prefix=CHECK --check-prefix=ARCHIVE +RUN: llvm-dwarfdump -v %t2 | FileCheck %s +RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 | llvm-dwarfdump -v - | FileCheck %s --check-prefix=CHECK --check-prefix=BASIC +RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-archive.macho.x86_64 | llvm-dwarfdump -v - | FileCheck %s --check-prefix=CHECK --check-prefix=ARCHIVE +RUN: llvm-dsymutil -dump-debug-map -oso-prepend-path=%p/.. %p/../Inputs/basic.macho.x86_64 | llvm-dsymutil -f -y -o - - | llvm-dwarfdump -v - | FileCheck %s --check-prefix=CHECK --check-prefix=BASIC +RUN: llvm-dsymutil -dump-debug-map -oso-prepend-path=%p/.. %p/../Inputs/basic-archive.macho.x86_64 | llvm-dsymutil -f -o - -y - | llvm-dwarfdump -v - | FileCheck %s --check-prefix=CHECK --check-prefix=ARCHIVE CHECK: file format Mach-O 64-bit x86-64 Index: test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test =================================================================== --- test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test +++ test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test @@ -1,4 +1,4 @@ -RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-lto-dw4.macho.x86_64 | llvm-dwarfdump - | FileCheck %s +RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-lto-dw4.macho.x86_64 | llvm-dwarfdump -v - | FileCheck %s CHECK: file format Mach-O 64-bit x86-64 Index: test/tools/dsymutil/X86/basic-lto-linking-x86.test =================================================================== --- test/tools/dsymutil/X86/basic-lto-linking-x86.test +++ test/tools/dsymutil/X86/basic-lto-linking-x86.test @@ -1,5 +1,5 @@ -RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-lto.macho.x86_64 | llvm-dwarfdump - | FileCheck %s -RUN: llvm-dsymutil -oso-prepend-path=%p/.. -dump-debug-map %p/../Inputs/basic-lto.macho.x86_64 | llvm-dsymutil -f -o - -y - | llvm-dwarfdump - | FileCheck %s +RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-lto.macho.x86_64 | llvm-dwarfdump -v - | FileCheck %s +RUN: llvm-dsymutil -oso-prepend-path=%p/.. -dump-debug-map %p/../Inputs/basic-lto.macho.x86_64 | llvm-dsymutil -f -o - -y - | llvm-dwarfdump -v - | FileCheck %s CHECK: file format Mach-O 64-bit x86-64 Index: test/tools/dsymutil/X86/common-sym.test =================================================================== --- test/tools/dsymutil/X86/common-sym.test +++ test/tools/dsymutil/X86/common-sym.test @@ -1,4 +1,4 @@ -RUN: llvm-dsymutil -oso-prepend-path %p/.. %p/../Inputs/common.macho.x86_64 -f -o - | llvm-dwarfdump -debug-info - | FileCheck %s +RUN: llvm-dsymutil -oso-prepend-path %p/.. %p/../Inputs/common.macho.x86_64 -f -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s The test was compiled from a single source: $ cat common.c Index: test/tools/dsymutil/X86/generate-empty-CU.test =================================================================== --- test/tools/dsymutil/X86/generate-empty-CU.test +++ test/tools/dsymutil/X86/generate-empty-CU.test @@ -1,4 +1,4 @@ -# RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. -y %s | llvm-dwarfdump - | FileCheck %s +# RUN: llvm-dsymutil -f -o - -oso-prepend-path=%p/.. -y %s | llvm-dwarfdump -v - | FileCheck %s # This test on links the Dwarf for an LTO binary and on purpose doesn't retain # any symbol in the second CU out of 3. This is the only case where dsymutil Index: test/tools/dsymutil/X86/modules.m =================================================================== --- test/tools/dsymutil/X86/modules.m +++ test/tools/dsymutil/X86/modules.m @@ -20,7 +20,7 @@ // RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/modules \ // RUN: -y %p/dummy-debug-map.map -o - \ -// RUN: | llvm-dwarfdump --debug-info - | FileCheck %s +// RUN: | llvm-dwarfdump -v --debug-info - | FileCheck %s // RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/modules -y \ // RUN: %p/dummy-debug-map.map -o %t 2>&1 | FileCheck --check-prefix=WARN %s Index: test/tools/dsymutil/X86/multiple-inputs.test =================================================================== --- test/tools/dsymutil/X86/multiple-inputs.test +++ test/tools/dsymutil/X86/multiple-inputs.test @@ -8,21 +8,21 @@ # Multiple inputs in flat mode RUN: llvm-dsymutil -f -oso-prepend-path=%p/.. %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_64 -RUN: llvm-dwarfdump %t/basic.macho.x86_64.dwarf \ +RUN: llvm-dwarfdump -v %t/basic.macho.x86_64.dwarf \ RUN: | FileCheck %S/basic-linking-x86.test --check-prefix=CHECK --check-prefix=BASIC -RUN: llvm-dwarfdump %t/basic-archive.macho.x86_64.dwarf \ +RUN: llvm-dwarfdump -v %t/basic-archive.macho.x86_64.dwarf \ RUN: | FileCheck %S/basic-linking-x86.test --check-prefix=CHECK --check-prefix=ARCHIVE -RUN: llvm-dwarfdump %t/basic-lto.macho.x86_64.dwarf | FileCheck %S/basic-lto-linking-x86.test -RUN: llvm-dwarfdump %t/basic-lto-dw4.macho.x86_64.dwarf | FileCheck %S/basic-lto-dw4-linking-x86.test +RUN: llvm-dwarfdump -v %t/basic-lto.macho.x86_64.dwarf | FileCheck %S/basic-lto-linking-x86.test +RUN: llvm-dwarfdump -v %t/basic-lto-dw4.macho.x86_64.dwarf | FileCheck %S/basic-lto-dw4-linking-x86.test # Multiple inputs that end up in the same named bundle RUN: llvm-dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_64 -o %t.dSYM -RUN: llvm-dwarfdump %t.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 \ +RUN: llvm-dwarfdump -v %t.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 \ RUN: | FileCheck %S/basic-linking-x86.test --check-prefix=CHECK --check-prefix=BASIC -RUN: llvm-dwarfdump %t.dSYM/Contents/Resources/DWARF/basic-archive.macho.x86_64 \ +RUN: llvm-dwarfdump -v %t.dSYM/Contents/Resources/DWARF/basic-archive.macho.x86_64 \ RUN: | FileCheck %S/basic-linking-x86.test --check-prefix=CHECK --check-prefix=ARCHIVE -RUN: llvm-dwarfdump %t.dSYM/Contents/Resources/DWARF/basic-lto.macho.x86_64 | FileCheck %S/basic-lto-linking-x86.test -RUN: llvm-dwarfdump %t.dSYM/Contents/Resources/DWARF/basic-lto-dw4.macho.x86_64 | FileCheck %S/basic-lto-dw4-linking-x86.test +RUN: llvm-dwarfdump -v %t.dSYM/Contents/Resources/DWARF/basic-lto.macho.x86_64 | FileCheck %S/basic-lto-linking-x86.test +RUN: llvm-dwarfdump -v %t.dSYM/Contents/Resources/DWARF/basic-lto-dw4.macho.x86_64 | FileCheck %S/basic-lto-dw4-linking-x86.test # Multiple inputs in a named bundle in flat mode... impossible. RUN: not llvm-dsymutil -f -oso-prepend-path=%p/.. %t/basic.macho.x86_64 %t/basic-archive.macho.x86_64 %t/basic-lto.macho.x86_64 %t/basic-lto-dw4.macho.x86_64 -o %t.dSYM 2>&1 | FileCheck %s Index: test/tools/dsymutil/X86/odr-fwd-declaration.cpp =================================================================== --- test/tools/dsymutil/X86/odr-fwd-declaration.cpp +++ test/tools/dsymutil/X86/odr-fwd-declaration.cpp @@ -4,7 +4,7 @@ done */ -// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-fwd-declaration -y %p/dummy-debug-map.map -o - | llvm-dwarfdump -debug-info - | FileCheck %s +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-fwd-declaration -y %p/dummy-debug-map.map -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s #ifdef FILE1 # 1 "Header.h" 1 Index: test/tools/dsymutil/X86/odr-fwd-declaration2.cpp =================================================================== --- test/tools/dsymutil/X86/odr-fwd-declaration2.cpp +++ test/tools/dsymutil/X86/odr-fwd-declaration2.cpp @@ -4,7 +4,7 @@ done */ -// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-fwd-declaration2 -y %p/dummy-debug-map.map -o - | llvm-dwarfdump -debug-info - | FileCheck %s +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-fwd-declaration2 -y %p/dummy-debug-map.map -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s #ifdef FILE1 # 1 "Header.h" 1 Index: test/tools/dsymutil/X86/odr-uniquing.cpp =================================================================== --- test/tools/dsymutil/X86/odr-uniquing.cpp +++ test/tools/dsymutil/X86/odr-uniquing.cpp @@ -11,8 +11,8 @@ - without ODR uniquing: all types are re-emited in the second CU */ -// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-uniquing -y %p/dummy-debug-map.map -o - | llvm-dwarfdump -debug-info - | FileCheck -check-prefix=ODR -check-prefix=CHECK %s -// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-uniquing -y %p/dummy-debug-map.map -no-odr -o - | llvm-dwarfdump -debug-info - | FileCheck -check-prefix=NOODR -check-prefix=CHECK %s +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-uniquing -y %p/dummy-debug-map.map -o - | llvm-dwarfdump -v -debug-info - | FileCheck -check-prefix=ODR -check-prefix=CHECK %s +// RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/odr-uniquing -y %p/dummy-debug-map.map -no-odr -o - | llvm-dwarfdump -v -debug-info - | FileCheck -check-prefix=NOODR -check-prefix=CHECK %s // The first compile unit contains all the types: // CHECK: TAG_compile_unit Index: test/tools/dsymutil/X86/submodules.m =================================================================== --- test/tools/dsymutil/X86/submodules.m +++ test/tools/dsymutil/X86/submodules.m @@ -18,7 +18,7 @@ // RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/submodules \ // RUN: -y %p/dummy-debug-map.map -o - \ -// RUN: | llvm-dwarfdump --debug-info - | FileCheck %s +// RUN: | llvm-dwarfdump -v --debug-info - | FileCheck %s // --------------------------------------------------------------------- #ifdef CHILD_H Index: test/tools/llvm-dwarfdump/X86/brief.s =================================================================== --- test/tools/llvm-dwarfdump/X86/brief.s +++ test/tools/llvm-dwarfdump/X86/brief.s @@ -15,9 +15,9 @@ # # CHECK-NOT: {{.*}} contents: # -# This test is meant to verify that -brief hides DW_FORMs and abbreviation -# codes from .debug_info section. Furthermore it verifies that it also hides -# .debug_str and die reference offsets into the CU. +# This test is meant to verify that without specifying -verbose DW_FORMs and +# abbreviation codes are hidden from .debug_info section. Furthermore it +# verifies that it also hides .debug_str and die reference offsets into the CU. .section __TEXT,__text,regular,pure_instructions .macosx_version_min 10, 12 Index: test/tools/llvm-dwp/X86/compress.test =================================================================== --- test/tools/llvm-dwp/X86/compress.test +++ test/tools/llvm-dwp/X86/compress.test @@ -1,5 +1,5 @@ RUN: llvm-dwp %p/../Inputs/compress/a.dwo -o %t -RUN: llvm-dwarfdump %t | FileCheck %s +RUN: llvm-dwarfdump -v %t | FileCheck %s REQUIRES: zlib Index: test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test =================================================================== --- test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test +++ test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test @@ -11,7 +11,7 @@ RUN: cp %p/../Inputs/dwos_list_from_exec/main main RUN: cp %p/../Inputs/dwos_list_from_exec/libd.so libd.so RUN: llvm-dwp c.dwo e.dwo -e main -e libd.so -o pkg.dwp -RUN: llvm-dwarfdump pkg.dwp | FileCheck %s +RUN: llvm-dwarfdump -v pkg.dwp | FileCheck %s Build commands for the test binaries: Index: test/tools/llvm-dwp/X86/empty.test =================================================================== --- test/tools/llvm-dwp/X86/empty.test +++ test/tools/llvm-dwp/X86/empty.test @@ -1,5 +1,5 @@ RUN: llvm-dwp %p/../Inputs/empty.dwo -o %t -RUN: llvm-dwarfdump %t | FileCheck %s +RUN: llvm-dwarfdump -v %t | FileCheck %s CHECK-LABEL: .debug_cu_index CHECK-NOT: version Index: test/tools/llvm-dwp/X86/gcc_type.test =================================================================== --- test/tools/llvm-dwp/X86/gcc_type.test +++ test/tools/llvm-dwp/X86/gcc_type.test @@ -1,5 +1,5 @@ RUN: llvm-dwp %p/../Inputs/gcc_type/a.dwo -o %t -RUN: llvm-dwarfdump %t | FileCheck %s +RUN: llvm-dwarfdump -v %t | FileCheck %s RUN: not llvm-dwp %p/../Inputs/gcc_type/a.dwo %p/../Inputs/gcc_type/a.dwo -o %t 2>&1 | FileCheck --check-prefix=DUP %s CHECK: Type Unit Index: test/tools/llvm-dwp/X86/merge.test =================================================================== --- test/tools/llvm-dwp/X86/merge.test +++ test/tools/llvm-dwp/X86/merge.test @@ -1,7 +1,7 @@ RUN: llvm-dwp %p/../Inputs/merge/notypes/c.dwo %p/../Inputs/merge/notypes/ab.dwp -o %t -RUN: llvm-dwarfdump %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s +RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s -FIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished. +FIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump -v doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished. DWP from a DWO (c.dwo) and a DWP (ab.dwp, created from a.dwo and b.dwo) Make sure the entries for A and B are updated correctly when read/processed from ab.dwp Index: test/tools/llvm-dwp/X86/simple.test =================================================================== --- test/tools/llvm-dwp/X86/simple.test +++ test/tools/llvm-dwp/X86/simple.test @@ -1,10 +1,10 @@ RUN: llvm-dwp %p/../Inputs/simple/notypes/a.dwo %p/../Inputs/simple/notypes/b.dwo -o %t -RUN: llvm-dwarfdump %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s +RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s RUN: llvm-objdump -h %t | FileCheck --check-prefix=NOTYPOBJ %s UN: llvm-dwp %p/../Inputs/simple/types/a.dwo %p/../Inputs/simple/types/b.dwo -o %t -UN: llvm-dwarfdump %t | FileCheck --check-prefix=CHECK --check-prefix=TYPES %s +UN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=TYPES %s -FIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished. +FIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump -v doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished. DWP from non-type-unit debug info for these two translation units: a.cpp: Index: test/tools/llvm-dwp/X86/type_dedup.test =================================================================== --- test/tools/llvm-dwp/X86/type_dedup.test +++ test/tools/llvm-dwp/X86/type_dedup.test @@ -1,8 +1,8 @@ RUN: llvm-dwp %p/../Inputs/type_dedup/a.dwo %p/../Inputs/type_dedup/b.dwo -o %t -RUN: llvm-dwarfdump %t | FileCheck %s +RUN: llvm-dwarfdump -v %t | FileCheck %s RUN: llvm-dwp %p/../Inputs/type_dedup/b.dwo -o %tb.dwp RUN: llvm-dwp %p/../Inputs/type_dedup/a.dwo %tb.dwp -o %t -RUN: llvm-dwarfdump %t | FileCheck %s +RUN: llvm-dwarfdump -v %t | FileCheck %s a.cpp: struct common { }; Index: tools/llvm-dwarfdump/llvm-dwarfdump.cpp =================================================================== --- tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -61,7 +61,10 @@ static cl::opt Quiet("quiet", cl::desc("Use with -verify to not emit to STDOUT.")); -static cl::opt Brief("brief", cl::desc("Print fewer low-level details")); +static cl::opt Verbose("verbose", + cl::desc("Print more low-level encoding details")); +static cl::alias VerboseAlias("v", cl::desc("Alias for -verbose"), + cl::aliasopt(Verbose)); static void error(StringRef Filename, std::error_code EC) { if (!EC) @@ -83,7 +86,7 @@ DIDumpOptions DumpOpts; DumpOpts.DumpType = DumpType; DumpOpts.SummarizeTypes = SummarizeTypes; - DumpOpts.Brief = Brief; + DumpOpts.Brief = !Verbose; DICtx->dump(outs(), DumpOpts); } @@ -203,10 +206,10 @@ if (DumpAll) DumpType = DIDT_All; if (DumpType == DIDT_Null) { - if (Brief) - DumpType = DIDT_DebugInfo; - else + if (Verbose) DumpType = DIDT_All; + else + DumpType = DIDT_DebugInfo; } // Defaults to a.out if no filenames specified.