mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
1f3fc31b75
This patch renumbers the metadata nodes in debug info testcases after https://reviews.llvm.org/D26769. This is a separate patch because it causes so much churn. This was implemented with a python script that pipes the testcases through llvm-as - | llvm-dis - and then goes through the original and new output side-by side to insert all comments at a close-enough location. Differential Revision: https://reviews.llvm.org/D27765 llvm-svn: 290292
23 lines
911 B
LLVM
23 lines
911 B
LLVM
; Use llvm-as to verify each module
|
|
; RUN: llvm-as %s -o %t1.bc
|
|
; RUN: llvm-as %p/Inputs/odr.ll -o %t2.bc
|
|
; Check that we can link it
|
|
; RUN: llvm-link %t1.bc %t2.bc -o %t
|
|
source_filename = "test/Linker/odr.ll"
|
|
|
|
@bar = global i64 0, align 8, !dbg !0
|
|
|
|
!llvm.dbg.cu = !{!2}
|
|
!llvm.module.flags = !{!8}
|
|
|
|
!0 = !DIGlobalVariableExpression(var: !1)
|
|
!1 = !DIGlobalVariable(name: "c", scope: null, isLocal: false, isDefinition: true)
|
|
!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, retainedTypes: !4, globals: !7)
|
|
!3 = !DIFile(filename: "a", directory: "")
|
|
!4 = !{!5}
|
|
!5 = distinct !DICompositeType(tag: DW_TAG_class_type, scope: !6, file: !3, identifier: "zed")
|
|
!6 = distinct !DISubprogram(name: "b", scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !2)
|
|
!7 = !{!0}
|
|
!8 = !{i32 2, !"Debug Info Version", i32 3}
|
|
|