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