xref: /llvm-project/llvm/test/DebugInfo/X86/DIModule.ll (revision d5180ea134796f96b0c6c4ab23c592d58f25733d)
1; ModuleID = '/Volumes/Data/apple-internal/llvm/tools/clang/test/Modules/debug-info-moduleimport.m'
2; RUN: llc %s -accel-tables=Dwarf -o %t -filetype=obj
3; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
4; RUN: llvm-dwarfdump -verify %t
5; CHECK: DW_TAG_compile_unit
6; CHECK-NOT: DW_TAG
7; CHECK:   DW_AT_LLVM_sysroot {{.*}}"/"
8; CHECK:   DW_TAG_module
9; CHECK-NEXT: DW_AT_name {{.*}}"DebugModule"
10; CHECK-NEXT: DW_AT_LLVM_config_macros {{.*}}"-DMODULES=0"
11; CHECK-NEXT: DW_AT_LLVM_include_path {{.*}}"/llvm/tools/clang/test/Modules/Inputs"
12; CHECK-NEXT: DW_AT_LLVM_apinotes {{.*}}"m.apinotes"
13
14target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
15target triple = "x86_64-apple-macosx"
16
17!llvm.dbg.cu = !{!0}
18!llvm.module.flags = !{!6, !7}
19!llvm.ident = !{!8}
20
21!0 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !1, producer: "LLVM version 3.7.0", isOptimized: false, runtimeVersion: 2, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !3,  sysroot: "/")
22!1 = !DIFile(filename: "/llvm/tools/clang/test/Modules/<stdin>", directory: "/")
23!2 = !{}
24!3 = !{!4}
25!4 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !0, entity: !5, file: !1, line: 5)
26!5 = !DIModule(scope: null, name: "DebugModule", configMacros: "-DMODULES=0", includePath: "/llvm/tools/clang/test/Modules/Inputs", apinotes: "m.apinotes")
27!6 = !{i32 2, !"Dwarf Version", i32 4}
28!7 = !{i32 2, !"Debug Info Version", i32 3}
29!8 = !{!"LLVM version 3.7.0"}
30