summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/unattached-global.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/X86/unattached-global.ll')
-rw-r--r--llvm/test/DebugInfo/X86/unattached-global.ll24
1 files changed, 14 insertions, 10 deletions
diff --git a/llvm/test/DebugInfo/X86/unattached-global.ll b/llvm/test/DebugInfo/X86/unattached-global.ll
index d271e4ea478..5d4be7377ef 100644
--- a/llvm/test/DebugInfo/X86/unattached-global.ll
+++ b/llvm/test/DebugInfo/X86/unattached-global.ll
@@ -1,19 +1,23 @@
-; RUN: llc -o - %s | FileCheck %s
+; RUN: %llc_dwarf -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s
target datalayout = "e-p:64:64"
target triple = "x86_64-unknown-linux-gnu"
-; CHECK: .byte 0 # DW_AT_location
+; CHECK: DW_TAG_variable
+; CHECK: DW_AT_name {{.*}}"a"
+; CHECK-NOT: DW_AT_location
+; CHECK: DW_TAG
-!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang", file: !4, globals: !1, emissionKind: FullDebug)
+!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang", file: !5, globals: !1, emissionKind: FullDebug)
!1 = !{!2}
-!2 = distinct !DIGlobalVariable(name: "a", scope: null, isLocal: false, isDefinition: true, expr: !3, type: !5)
-!3 = !DIExpression(DW_OP_plus, 4)
-!4 = !DIFile(filename: "<stdin>", directory: "/")
-!5 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
+!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)
-!6 = !{i32 2, !"Dwarf Version", i32 2}
-!7 = !{i32 2, !"Debug Info Version", i32 3}
+!7 = !{i32 2, !"Dwarf Version", i32 2}
+!8 = !{i32 2, !"Debug Info Version", i32 3}
!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!6, !7}
+!llvm.module.flags = !{!7, !8}
OpenPOWER on IntegriCloud