Refactor the RelocVisitor::visit method
[oota-llvm.git] / test / DebugInfo / processes-relocations.ll
1 ; Make sure that for each supported architecture in RelocVisitor::visit,
2 ; the visitor does compute the relocation. This should test all archs that
3 ; have buildbots. We can't set all archs, since some bots don't build all
4 ; back-ends.
5 ; RUN: llc -filetype=obj -O0 < %s | llvm-dwarfdump - 2>&1 | FileCheck %s
6
7 ; CHECK-NOT: failed to compute relocation
8
9 !llvm.dbg.cu = !{!0}
10 !llvm.module.flags = !{!3, !4}
11 !llvm.ident = !{!5}
12
13 !0 = metadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.6.0 ", i1 false, metadata !"", i32 0, metadata !2, metadata !2, metadata !2, metadata !2, metadata !2, metadata !"", i32 1} ; [ DW_TAG_compile_unit ] [/a/empty.c] [DW_LANG_C99]
14 !1 = metadata !{metadata !"empty.c", metadata !"/a"}
15 !2 = metadata !{}
16 !3 = metadata !{i32 2, metadata !"Dwarf Version", i32 4}
17 !4 = metadata !{i32 2, metadata !"Debug Info Version", i32 1}
18 !5 = metadata !{metadata !"clang version 3.6.0 "}