From 74c61b9c806dc8a6c249b14ab679dbef1772c57e Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Fri, 19 Jul 2013 00:31:03 +0000 Subject: Debug Info: enable verifying by default and disable testing cases that fail. 1> Use DebugInfoFinder to find debug info MDNodes. 2> Add disable-debug-info-verifier to disable verifying debug info. 3> Disable verifying for testing cases that fail (will update the testing cases later on). 4> MDNodes generated by clang can have empty filename for TAG_inheritance and TAG_friend, so DIType::Verify is modified accordingly. Note that DebugInfoFinder does not list all debug info MDNode. For example, clang can generate: metadata !{i32 786468}, which will fail to verify. This MDNode is used by debug info but not included in DebugInfoFinder. This MDNode is generated as a temporary node in DIBuilder::createFunction Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) }; MDNode::getTemporary(VMContext, TElts) llvm-svn: 186634 --- llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll | 4 ++-- llvm/test/CodeGen/X86/2010-08-04-StackVariable.ll | 2 +- llvm/test/CodeGen/X86/dbg-i128-const.ll | 2 +- llvm/test/CodeGen/X86/dbg-subrange.ll | 2 +- llvm/test/CodeGen/X86/dbg-value-dag-combine.ll | 2 +- llvm/test/CodeGen/X86/dbg-value-isel.ll | 2 +- llvm/test/CodeGen/X86/dbg-value-location.ll | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) (limited to 'llvm/test/CodeGen') diff --git a/llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll b/llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll index 6510ff17f7b..7bfea2bcb5f 100644 --- a/llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll +++ b/llvm/test/CodeGen/X86/2010-05-26-DotDebugLoc.ll @@ -1,5 +1,5 @@ -; RUN: llc -O2 < %s | FileCheck %s -; RUN: llc -O2 -regalloc=basic < %s | FileCheck %s +; RUN: llc -O2 -disable-debug-info-verifier < %s | FileCheck %s +; RUN: llc -O2 -disable-debug-info-verifier -regalloc=basic < %s | 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" diff --git a/llvm/test/CodeGen/X86/2010-08-04-StackVariable.ll b/llvm/test/CodeGen/X86/2010-08-04-StackVariable.ll index 5b5377cd53a..e285f5d3024 100644 --- a/llvm/test/CodeGen/X86/2010-08-04-StackVariable.ll +++ b/llvm/test/CodeGen/X86/2010-08-04-StackVariable.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 -mtriple=x86_64-apple-darwin < %s | grep DW_OP_breg7 +; RUN: llc -O0 -mtriple=x86_64-apple-darwin -disable-debug-info-verifier < %s | grep DW_OP_breg7 ; Use DW_OP_breg7 in variable's location expression if the variable is in a stack slot. %struct.SVal = type { i8*, i32 } diff --git a/llvm/test/CodeGen/X86/dbg-i128-const.ll b/llvm/test/CodeGen/X86/dbg-i128-const.ll index cc612b2ca53..8deec3509d3 100644 --- a/llvm/test/CodeGen/X86/dbg-i128-const.ll +++ b/llvm/test/CodeGen/X86/dbg-i128-const.ll @@ -1,4 +1,4 @@ -; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s +; RUN: llc -mtriple=x86_64-linux -disable-debug-info-verifier < %s | FileCheck %s ; CHECK: DW_AT_const_value ; CHECK-NEXT: 42 diff --git a/llvm/test/CodeGen/X86/dbg-subrange.ll b/llvm/test/CodeGen/X86/dbg-subrange.ll index b08d68a6643..0dc97525290 100644 --- a/llvm/test/CodeGen/X86/dbg-subrange.ll +++ b/llvm/test/CodeGen/X86/dbg-subrange.ll @@ -1,4 +1,4 @@ -; RUN: llc -O0 < %s | FileCheck %s +; RUN: llc -O0 -disable-debug-info-verifier < %s | FileCheck %s ; Radar 10464995 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.7.2" diff --git a/llvm/test/CodeGen/X86/dbg-value-dag-combine.ll b/llvm/test/CodeGen/X86/dbg-value-dag-combine.ll index 7c3c361bae1..babc2164d7a 100644 --- a/llvm/test/CodeGen/X86/dbg-value-dag-combine.ll +++ b/llvm/test/CodeGen/X86/dbg-value-dag-combine.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc -disable-debug-info-verifier < %s | 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" ; PR 9817 diff --git a/llvm/test/CodeGen/X86/dbg-value-isel.ll b/llvm/test/CodeGen/X86/dbg-value-isel.ll index acc360e90cd..16d9f891dbd 100644 --- a/llvm/test/CodeGen/X86/dbg-value-isel.ll +++ b/llvm/test/CodeGen/X86/dbg-value-isel.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc -disable-debug-info-verifier < %s | 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" ; PR 9879 diff --git a/llvm/test/CodeGen/X86/dbg-value-location.ll b/llvm/test/CodeGen/X86/dbg-value-location.ll index a6c3e13621c..b6bee596e14 100644 --- a/llvm/test/CodeGen/X86/dbg-value-location.ll +++ b/llvm/test/CodeGen/X86/dbg-value-location.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s | FileCheck %s -; RUN: llc < %s -regalloc=basic | FileCheck %s +; RUN: llc -disable-debug-info-verifier < %s | FileCheck %s +; RUN: llc -disable-debug-info-verifier < %s -regalloc=basic | 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" ;Radar 8950491 -- cgit v1.2.3