Utils: Handle remapping distinct MDLocations
[oota-llvm.git] / test / Linker / Inputs / mdlocation.ll
1 !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9}
2
3 !0 = !{} ; Use this as a scope.
4 !1 = !MDLocation(line: 3, column: 7, scope: !0)
5 !2 = !MDLocation(line: 3, column: 7, scope: !0, inlinedAt: !1)
6 !3 = !MDLocation(line: 3, column: 7, scope: !0, inlinedAt: !2)
7 !4 = distinct !{} ; Test actual remapping.
8 !5 = !MDLocation(line: 3, column: 7, scope: !4)
9 !6 = !MDLocation(line: 3, column: 7, scope: !4, inlinedAt: !5)
10 !7 = !MDLocation(line: 3, column: 7, scope: !4, inlinedAt: !6)
11 ; Test distinct nodes.
12 !8 = distinct !MDLocation(line: 3, column: 7, scope: !0)
13 !9 = distinct !MDLocation(line: 3, column: 7, scope: !0, inlinedAt: !8)