summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/Inputs/metadata-source-a.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Linker/Inputs/metadata-source-a.ll')
-rw-r--r--llvm/test/Linker/Inputs/metadata-source-a.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/metadata-source-a.ll b/llvm/test/Linker/Inputs/metadata-source-a.ll
new file mode 100644
index 00000000000..e828770e048
--- /dev/null
+++ b/llvm/test/Linker/Inputs/metadata-source-a.ll
@@ -0,0 +1,22 @@
+; ModuleID = 'a.c'
+source_filename = "a.c"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+@a = common global i32 0, align 4, !dbg !0
+
+!llvm.dbg.cu = !{!2}
+!llvm.module.flags = !{!7, !8, !9}
+!llvm.ident = !{!10}
+
+!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
+!1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
+!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 7.0.0 (https://git.llvm.org/git/clang.git/ c12b573f9ac61655cce52628b34235f58edaf984) (https://scott.linder@llvm.org/git/llvm.git 90c4822e8541eb07891cd03e614c530c30f8aa12)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
+!3 = !DIFile(filename: "a.c", directory: "/home/slinder1/test/link", source: "int a;\0A")
+!4 = !{}
+!5 = !{!0}
+!6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
+!7 = !{i32 2, !"Dwarf Version", i32 4}
+!8 = !{i32 2, !"Debug Info Version", i32 3}
+!9 = !{i32 1, !"wchar_size", i32 4}
+!10 = !{!"clang version 7.0.0 (https://git.llvm.org/git/clang.git/ c12b573f9ac61655cce52628b34235f58edaf984) (https://scott.linder@llvm.org/git/llvm.git 90c4822e8541eb07891cd03e614c530c30f8aa12)"}
OpenPOWER on IntegriCloud