| ; RUN: llc %s -o - -filetype=obj | llvm-dwarfdump -v -debug-info - | FileCheck %s |
| ; Generated from: |
| ; namespace normal { inline namespace inlined { int i; } } |
| ; Check that an inline namespace is emitted with DW_AT_export_symbols |
| |
| ; CHECK: DW_TAG_namespace |
| ; CHECK-NEXT: DW_AT_name {{.*}} "normal" |
| ; CHECK-NOT: DW_AT_export_symbols |
| ; CHECK-NOT: NULL |
| ; CHECK: DW_TAG_namespace |
| ; CHECK-NEXT: DW_AT_name {{.*}} "inlined" |
| ; CHECK-NOT: DW_TAG |
| ; CHECK-NOT: NULL |
| ; CHECK: DW_AT_export_symbols [DW_FORM_flag_present] (true) |
| ; CHECK-NOT: DW_TAG |
| ; CHECK: DW_TAG_variable |
| ; CHECK-NEXT: DW_AT_name {{.*}} "i" |
| |
| source_filename = "namespace.cpp" |
| target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |
| target triple = "x86_64-apple-macosx10.12.0" |
| |
| @_ZN6normal7inlined1iE = global i32 0, align 4, !dbg !0 |
| |
| !llvm.dbg.cu = !{!6} |
| !llvm.module.flags = !{!9, !10, !11} |
| !llvm.ident = !{!12} |
| |
| !0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) |
| !1 = !DIGlobalVariable(name: "i", linkageName: "_ZN6normal7inlined1iE", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true) |
| !2 = !DINamespace(name: "inlined", scope: !4, exportSymbols: true) |
| !3 = !DIFile(filename: "namespace.cpp", directory: "/") |
| !4 = !DINamespace(name: "normal", scope: null) |
| !5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) |
| !6 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 4.0.0 (trunk 285825) (llvm/trunk 285822)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !7, globals: !8) |
| !7 = !{} |
| !8 = !{!0} |
| !9 = !{i32 2, !"Dwarf Version", i32 5} |
| !10 = !{i32 2, !"Debug Info Version", i32 3} |
| !11 = !{i32 1, !"PIC Level", i32 2} |
| !12 = !{!"clang version 4.0.0 (trunk 285825) (llvm/trunk 285822)"} |
| |