Index: llvm/trunk/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/2011-01-19-MergedGlobalDbg.ll +++ llvm/trunk/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: llvm/trunk/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/2011-08-02-MergedGlobalDbg.ll +++ llvm/trunk/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: llvm/trunk/test/CodeGen/ARM/debug-info-blocks.ll =================================================================== --- llvm/trunk/test/CodeGen/ARM/debug-info-blocks.ll +++ llvm/trunk/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: llvm/trunk/test/CodeGen/X86/2010-01-18-DbgValue.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/2010-01-18-DbgValue.ll +++ llvm/trunk/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: llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/2011-01-24-DbgValue-Before-Use.ll +++ llvm/trunk/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: llvm/trunk/test/CodeGen/X86/dbg-baseptr.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/dbg-baseptr.ll +++ llvm/trunk/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: llvm/trunk/test/CodeGen/X86/dwarf-headers.ll =================================================================== --- llvm/trunk/test/CodeGen/X86/dwarf-headers.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AArch64/asan-stack-vars.ll =================================================================== --- llvm/trunk/test/DebugInfo/AArch64/asan-stack-vars.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AArch64/bitfields.ll =================================================================== --- llvm/trunk/test/DebugInfo/AArch64/bitfields.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AArch64/dwarfdump.ll =================================================================== --- llvm/trunk/test/DebugInfo/AArch64/dwarfdump.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AArch64/frameindices.ll =================================================================== --- llvm/trunk/test/DebugInfo/AArch64/frameindices.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AArch64/line-header.ll =================================================================== --- llvm/trunk/test/DebugInfo/AArch64/line-header.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AMDGPU/dwarfdump-relocs.ll =================================================================== --- llvm/trunk/test/DebugInfo/AMDGPU/dwarfdump-relocs.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AMDGPU/pointer-address-space.ll =================================================================== --- llvm/trunk/test/DebugInfo/AMDGPU/pointer-address-space.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/AMDGPU/variable-locations.ll =================================================================== --- llvm/trunk/test/DebugInfo/AMDGPU/variable-locations.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/ARM/PR26163.ll =================================================================== --- llvm/trunk/test/DebugInfo/ARM/PR26163.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/ARM/big-endian-bitfield.ll =================================================================== --- llvm/trunk/test/DebugInfo/ARM/big-endian-bitfield.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/ARM/bitfield.ll =================================================================== --- llvm/trunk/test/DebugInfo/ARM/bitfield.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/ARM/partial-subreg.ll =================================================================== --- llvm/trunk/test/DebugInfo/ARM/partial-subreg.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/ARM/split-complex.ll =================================================================== --- llvm/trunk/test/DebugInfo/ARM/split-complex.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/2010-04-06-NestedFnDbgInfo.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/PR20038.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/PR20038.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/constant-pointers.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/constant-pointers.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/cross-cu-inlining.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/cross-cu-inlining.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/cross-cu-linkonce-distinct.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/cross-cu-linkonce.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/cross-cu-linkonce.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/cu-ranges.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/cu-ranges.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/dead-argument-order.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/dead-argument-order.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/debug-info-qualifiers.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/debug-info-qualifiers.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/enum-types.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/enum-types.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/enum.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/enum.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/gmlt_profiling.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/gmlt_profiling.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/imported-name-inlined.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/imported-name-inlined.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/incorrect-variable-debugloc.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/incorrect-variable-debugloc.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/linkage-name-abstract.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/linkage-name-abstract.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/mainsubprogram.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/mainsubprogram.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/member-order.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/member-order.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/member-pointers.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/member-pointers.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/missing-abstract-variable.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/missing-abstract-variable.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/namespace.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/namespace.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/namespace_function_definition.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/namespace_function_definition.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/namespace_inline_function_definition.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/namespace_inline_function_definition.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/nodebug.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/nodebug.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/ptrsize.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/ptrsize.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/recursive_inlining.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/recursive_inlining.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/restrict.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/restrict.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/sugared-constants.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/sugared-constants.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/template-recursive-void.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/template-recursive-void.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/thrownTypes.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/thrownTypes.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/tu-composite.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/tu-composite.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/tu-member-pointer.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/tu-member-pointer.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/unconditional-branch.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/unconditional-branch.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/varargs.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/varargs.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Generic/virtual-index.ll =================================================================== --- llvm/trunk/test/DebugInfo/Generic/virtual-index.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/MIR/AArch64/implicit-def-dead-scope.mir =================================================================== --- llvm/trunk/test/DebugInfo/MIR/AArch64/implicit-def-dead-scope.mir +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/MIR/X86/bit-piece-dh.mir =================================================================== --- llvm/trunk/test/DebugInfo/MIR/X86/bit-piece-dh.mir +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/MIR/X86/empty-inline.mir =================================================================== --- llvm/trunk/test/DebugInfo/MIR/X86/empty-inline.mir +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Mips/delay-slot.ll =================================================================== --- llvm/trunk/test/DebugInfo/Mips/delay-slot.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Mips/dsr-fixed-objects.ll =================================================================== --- llvm/trunk/test/DebugInfo/Mips/dsr-fixed-objects.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Mips/dsr-non-fixed-objects.ll =================================================================== --- llvm/trunk/test/DebugInfo/Mips/dsr-non-fixed-objects.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/Sparc/gnu-window-save.ll =================================================================== --- llvm/trunk/test/DebugInfo/Sparc/gnu-window-save.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll =================================================================== --- llvm/trunk/test/DebugInfo/SystemZ/variable-loc.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/SystemZ/variable-loc.s =================================================================== --- llvm/trunk/test/DebugInfo/SystemZ/variable-loc.s +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_AT_calling-convention.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_AT_calling-convention.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_AT_linkage_name.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_AT_linkage_name.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_AT_location-reference.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_AT_location-reference.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_AT_object_pointer.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_AT_object_pointer.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_AT_specification.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_AT_specification.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_AT_stmt_list_sec_offset.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/DW_TAG_friend.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/DW_TAG_friend.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/FrameIndexExprs.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/FrameIndexExprs.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/array.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/array.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/bitfields-dwarf4.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/bitfields-dwarf4.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/bitfields.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/bitfields.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/block-capture.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/block-capture.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/byvalstruct.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/byvalstruct.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/concrete_out_of_line.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/concrete_out_of_line.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/constant-aggregate.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/constant-aggregate.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/constant-loclist.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/constant-loclist.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/data_member_location.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/data_member_location.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-abstract-vars-g-gmlt.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-abstract-vars-g-gmlt.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-const-int.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-const-int.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-declare-alloca.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-declare-alloca.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-declare-arg.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-declare-arg.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-declare.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-declare.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-value-frame-index.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-value-frame-index.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-value-g-gmlt.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-value-g-gmlt.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-value-inlined-parameter.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-value-inlined-parameter.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-value-location.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-value-location.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dbg-value-regmask-clobber.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dbg-value-regmask-clobber.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/debug-info-blocks.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/debug-info-blocks.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/debug-info-packed-struct.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/debug-info-packed-struct.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/debug-info-static-member.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/debug-info-static-member.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/debug-loc-frame.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/debug-loc-frame.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/debug-loc-offset.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/debug-loc-offset.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/debug-macro.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/debug-macro.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/default-subrange-array.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/default-subrange-array.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/double-declare.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/double-declare.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dw_op_minus_direct.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/dw_op_minus_direct.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dwarfdump-debug-loc-simple.test =================================================================== --- llvm/trunk/test/DebugInfo/X86/dwarfdump-debug-loc-simple.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dwarfdump-ranges-baseaddr-exe.s =================================================================== --- llvm/trunk/test/DebugInfo/X86/dwarfdump-ranges-baseaddr-exe.s +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s =================================================================== --- llvm/trunk/test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s =================================================================== --- llvm/trunk/test/DebugInfo/X86/dwarfdump-ranges-unrelocated.s +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/elf-names.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/elf-names.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/empty-and-one-elem-array.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/empty-and-one-elem-array.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/empty-array.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/empty-array.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/empty.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/empty.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/enum-class.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/enum-class.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/fi-expr.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/fi-expr.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/fi-piece.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/fi-piece.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/fission-cu.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/fission-cu.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/fission-hash.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/fission-hash.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/fission-inline.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/fission-inline.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/fission-ranges.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/fission-ranges.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/float_const.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/float_const.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/float_const_loclist.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/float_const_loclist.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/frame-register.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/frame-register.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/generate-odr-hash.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/generate-odr-hash.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/gmlt.test =================================================================== --- llvm/trunk/test/DebugInfo/X86/gmlt.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/gnu-public-names-empty.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/gnu-public-names-empty.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/gnu-public-names-gmlt.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/gnu-public-names-gmlt.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/gnu-public-names-tu.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/gnu-public-names-tu.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/gnu-public-names.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/gnu-public-names.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/inline-member-function.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/inline-member-function.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/inline-namespace.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/inline-namespace.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/inlined-formal-parameter.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/inlined-formal-parameter.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/lexical-block-file-inline.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/lexical-block-file-inline.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/lexical_block.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/lexical_block.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/line-info.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/line-info.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/linkage-name.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/linkage-name.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/low-pc-cu.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/low-pc-cu.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/main-file-name.s =================================================================== --- llvm/trunk/test/DebugInfo/X86/main-file-name.s +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/misched-dbg-value.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/misched-dbg-value.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/multiple-at-const-val.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/multiple-at-const-val.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/nondefault-subrange-array.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/nondefault-subrange-array.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/objc-property-void.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/objc-property-void.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/op_deref.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/op_deref.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/parameters.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/parameters.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/partial-constant.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/partial-constant.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/pieces-2.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/pieces-2.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/pieces-3.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/pieces-3.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/pr11300.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/pr11300.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/ref_addr_relocation.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/ref_addr_relocation.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/reference-argument.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/reference-argument.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/single-dbg_value.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/single-dbg_value.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/single-fi.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/single-fi.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/split-dwarf-cross-unit-reference.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/split-global.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/split-global.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/sret.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/sret.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/stack-value-piece.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/stack-value-piece.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/static_member_array.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/static_member_array.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/subrange-type.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/subrange-type.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/subregisters.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/subregisters.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/template.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/template.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/this-stack_value.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/this-stack_value.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/type_units_with_addresses.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/type_units_with_addresses.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/X86/union-const.ll =================================================================== --- llvm/trunk/test/DebugInfo/X86/union-const.ll +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/arm-relocs.test =================================================================== --- llvm/trunk/test/DebugInfo/arm-relocs.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-accel.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-accel.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-dwp.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-dwp.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-header.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-header.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-line-dwo.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-line-dwo.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-macho-universal.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-macho-universal.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-objc.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-objc.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-ranges.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-ranges.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-str-offsets-dwp.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-str-offsets-dwp.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-str-offsets-invalid.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-str-offsets-invalid.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-str-offsets.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-str-offsets.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-type-units.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-type-units.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/dwarfdump-zlib.test =================================================================== --- llvm/trunk/test/DebugInfo/dwarfdump-zlib.test +++ llvm/trunk/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: llvm/trunk/test/DebugInfo/typeunit-header.test =================================================================== --- llvm/trunk/test/DebugInfo/typeunit-header.test +++ llvm/trunk/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: llvm/trunk/test/Linker/type-unique-odr-a.ll =================================================================== --- llvm/trunk/test/Linker/type-unique-odr-a.ll +++ llvm/trunk/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: llvm/trunk/test/Linker/type-unique-simple-a.ll =================================================================== --- llvm/trunk/test/Linker/type-unique-simple-a.ll +++ llvm/trunk/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: llvm/trunk/test/Linker/type-unique-simple2-a.ll =================================================================== --- llvm/trunk/test/Linker/type-unique-simple2-a.ll +++ llvm/trunk/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: llvm/trunk/test/Linker/type-unique-simple2.ll =================================================================== --- llvm/trunk/test/Linker/type-unique-simple2.ll +++ llvm/trunk/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: llvm/trunk/test/Linker/type-unique-type-array-a.ll =================================================================== --- llvm/trunk/test/Linker/type-unique-type-array-a.ll +++ llvm/trunk/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: llvm/trunk/test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s =================================================================== --- llvm/trunk/test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s +++ llvm/trunk/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: llvm/trunk/test/MC/ARM/dwarf-asm-multiple-sections.s =================================================================== --- llvm/trunk/test/MC/ARM/dwarf-asm-multiple-sections.s +++ llvm/trunk/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: llvm/trunk/test/MC/ARM/dwarf-asm-no-code.s =================================================================== --- llvm/trunk/test/MC/ARM/dwarf-asm-no-code.s +++ llvm/trunk/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: llvm/trunk/test/MC/ARM/dwarf-asm-nonstandard-section.s =================================================================== --- llvm/trunk/test/MC/ARM/dwarf-asm-nonstandard-section.s +++ llvm/trunk/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: llvm/trunk/test/MC/ARM/dwarf-asm-single-section.s =================================================================== --- llvm/trunk/test/MC/ARM/dwarf-asm-single-section.s +++ llvm/trunk/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: llvm/trunk/test/MC/ARM/dwarf-cfi-initial-state.s =================================================================== --- llvm/trunk/test/MC/ARM/dwarf-cfi-initial-state.s +++ llvm/trunk/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: llvm/trunk/test/MC/ELF/cfi-version.ll =================================================================== --- llvm/trunk/test/MC/ELF/cfi-version.ll +++ llvm/trunk/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: llvm/trunk/test/MC/ELF/comp-dir.s =================================================================== --- llvm/trunk/test/MC/ELF/comp-dir.s +++ llvm/trunk/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: llvm/trunk/test/MC/MachO/gen-dwarf-producer.s =================================================================== --- llvm/trunk/test/MC/MachO/gen-dwarf-producer.s +++ llvm/trunk/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: llvm/trunk/test/MC/MachO/gen-dwarf.s =================================================================== --- llvm/trunk/test/MC/MachO/gen-dwarf.s +++ llvm/trunk/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: llvm/trunk/test/Object/Mips/reloc-visit.test =================================================================== --- llvm/trunk/test/Object/Mips/reloc-visit.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/basic-linking-bundle.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/basic-linking-bundle.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/basic-linking-x86.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/basic-linking-x86.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/basic-lto-dw4-linking-x86.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/basic-lto-linking-x86.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/basic-lto-linking-x86.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/common-sym.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/common-sym.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/generate-empty-CU.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/generate-empty-CU.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/modules.m =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/modules.m +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/multiple-inputs.test =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/multiple-inputs.test +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/odr-fwd-declaration.cpp =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/odr-fwd-declaration.cpp +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/odr-fwd-declaration2.cpp =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/odr-fwd-declaration2.cpp +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/odr-uniquing.cpp =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/odr-uniquing.cpp +++ llvm/trunk/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: llvm/trunk/test/tools/dsymutil/X86/submodules.m =================================================================== --- llvm/trunk/test/tools/dsymutil/X86/submodules.m +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwarfdump/X86/brief.s =================================================================== --- llvm/trunk/test/tools/llvm-dwarfdump/X86/brief.s +++ llvm/trunk/test/tools/llvm-dwarfdump/X86/brief.s @@ -1,5 +1,5 @@ # RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - \ -# RUN: | llvm-dwarfdump -debug-info --brief - \ +# RUN: | llvm-dwarfdump -debug-info - \ # RUN: | FileCheck %s # CHECK-NOT: .debug_abbrev contents: @@ -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: llvm/trunk/test/tools/llvm-dwp/X86/compress.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/compress.test +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/dwos_list_from_exec_simple.test +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwp/X86/empty.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/empty.test +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwp/X86/gcc_type.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/gcc_type.test +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwp/X86/merge.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/merge.test +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwp/X86/simple.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/simple.test +++ llvm/trunk/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: llvm/trunk/test/tools/llvm-dwp/X86/type_dedup.test =================================================================== --- llvm/trunk/test/tools/llvm-dwp/X86/type_dedup.test +++ llvm/trunk/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: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp =================================================================== --- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp +++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp @@ -57,7 +57,10 @@ static cl::opt Verify("verify", cl::desc("Verify the DWARF debug info")); 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) @@ -79,7 +82,7 @@ DIDumpOptions DumpOpts; DumpOpts.DumpType = DumpType; DumpOpts.SummarizeTypes = SummarizeTypes; - DumpOpts.Brief = Brief; + DumpOpts.Brief = !Verbose; DICtx->dump(outs(), DumpOpts); } @@ -199,10 +202,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.