xref: /llvm-project/llvm/test/Bitcode/DIModule-clang-module.ll (revision e59744fd9b4298c0527163748510a482a942eb54)
1; RUN: llvm-dis -o - %s.bc | FileCheck %s
2
3; CHECK: DIModule(scope: null, name: "DebugModule", configMacros: "-DMODULES=0", includePath: "/", apinotes: "m.apinotes")
4
5; ModuleID = 'DIModule-clang-module.ll'
6
7target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
8target triple = "x86_64-unknown-linux"
9
10!llvm.dbg.cu = !{!0}
11!llvm.module.flags = !{!6, !7}
12!llvm.ident = !{!8}
13
14!0 = distinct !DICompileUnit(language: DW_LANG_ObjC_plus_plus, file: !1, producer: "clang version 11.0.0", isOptimized: false, runtimeVersion: 2, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !3)
15!1 = !DIFile(filename: "/test.cpp", directory: "/")
16!2 = !{}
17!3 = !{!4}
18!4 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !0, entity: !5, file: !1, line: 5)
19!5 = !DIModule(scope: null, name: "DebugModule", configMacros: "-DMODULES=0", includePath: "/", apinotes: "m.apinotes")
20!6 = !{i32 2, !"Dwarf Version", i32 4}
21!7 = !{i32 2, !"Debug Info Version", i32 3}
22!8 = !{!"clang version 11.0.0"}
23