summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-08-01 20:52:39 +0000
committerManman Ren <manman.ren@gmail.com>2013-08-01 20:52:39 +0000
commit4c065e779c208377ea504d6d1a0eed19c298e1bb (patch)
tree8ad22b6372f0947f9efb861f63b8583244b4524b /llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll
parent4a5b8958a81e2e91ed08703789353424f55846cd (diff)
downloadbcm5719-llvm-4c065e779c208377ea504d6d1a0eed19c298e1bb.tar.gz
bcm5719-llvm-4c065e779c208377ea504d6d1a0eed19c298e1bb.zip
Debug Info Finder|Verifier: handle DbgLoc attached to instructions.
Also remove checking of llvm.dbg.sp since it is not used in generating dwarf. Current state of Finder: DebugInfoFinder tries to list all debug info MDNodes used in a module. To list debug info MDNodes used by an instruction, DebugInfoFinder provides processDeclare, processValue and processLocation to handle DbgDeclareInst, DbgValueInst and DbgLoc attached to instructions. processModule will go through all DICompileUnits in llvm.dbg.cu and list debug info MDNodes used by the CUs. TODO: 1> Finder has a list of CUs, SPs, Types, Scopes and global variables. We need to add a list of variables that are used by DbgDeclareInst and DbgValueInst. 2> MDString fields should be null or isa<MDString> and MDNode fields should be null or isa<MDNode>. We currently use empty string or int 0 to represent null. 3> Go though Verify functions and make sure that they check field types. 4> Clean up existing testing cases to remove llvm.dbg.sp and make sure each testing case has a llvm.dbg.cu. llvm-svn: 187609
Diffstat (limited to 'llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll')
-rw-r--r--llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll b/llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll
index 58bef5e1c4b..5754fcd7cbc 100644
--- a/llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll
+++ b/llvm/test/Transforms/Mem2Reg/ConvertDebugInfo.ll
@@ -45,6 +45,6 @@ declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
!8 = metadata !{i32 2, i32 0, metadata !1, null}
!9 = metadata !{i32 786689, metadata !1, metadata !"j", metadata !2, i32 2, metadata !6, i32 0, null} ; [ DW_TAG_arg_variable ]
!10 = metadata !{i32 3, i32 0, metadata !11, null}
-!11 = metadata !{i32 786443, metadata !1, i32 2, i32 0} ; [ DW_TAG_lexical_block ]
+!11 = metadata !{i32 786443, metadata !12, metadata !1, i32 2, i32 0, i32 0} ; [ DW_TAG_lexical_block ]
!12 = metadata !{metadata !"testfunc.c", metadata !"/tmp"}
!13 = metadata !{i32 0}
OpenPOWER on IntegriCloud