1; RUN: %llc_dwarf -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s
2
3target datalayout = "e-p:64:64"
4target triple = "x86_64-unknown-linux-gnu"
5
6; CHECK: DW_TAG_variable
7; CHECK: DW_AT_name {{.*}}"a"
8; CHECK-NOT: DW_AT_location
9; CHECK: DW_TAG
10
11!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang", file: !5, globals: !1, emissionKind: FullDebug)
12!1 = !{!2}
13!2 = !DIGlobalVariableExpression(var: !3, expr: !4)
14!3 = distinct !DIGlobalVariable(name: "a", scope: null, isLocal: false, isDefinition: true, type: !6)
15!4 = !DIExpression(DW_OP_plus_uconst, 4)
16!5 = !DIFile(filename: "<stdin>", directory: "/")
17!6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
18
19!7 = !{i32 2, !"Dwarf Version", i32 2}
20!8 = !{i32 2, !"Debug Info Version", i32 3}
21
22!llvm.dbg.cu = !{!0}
23!llvm.module.flags = !{!7, !8}
24