summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorScott Linder <scott@scottlinder.com>2018-02-23 23:13:18 +0000
committerScott Linder <scott@scottlinder.com>2018-02-23 23:13:18 +0000
commitc16b975ac8275d0503411b2a4bcb76112c19d046 (patch)
treeee440bdb0cd1c30384ea3fa06a06cdd89d76daee /llvm/test/Bitcode
parentbcc82c9a78b1690af80836093aa32ab8470cc8f4 (diff)
downloadbcm5719-llvm-c16b975ac8275d0503411b2a4bcb76112c19d046.tar.gz
bcm5719-llvm-c16b975ac8275d0503411b2a4bcb76112c19d046.zip
[DebugInfo] Add remaining files to r325970
Add files which I missed in the original check-in llvm-svn: 325973
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/metadata-source.ll13
-rw-r--r--llvm/test/Bitcode/metadata-source.ll.bcbin0 -> 1028 bytes
2 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/metadata-source.ll b/llvm/test/Bitcode/metadata-source.ll
new file mode 100644
index 00000000000..d52dc260d22
--- /dev/null
+++ b/llvm/test/Bitcode/metadata-source.ll
@@ -0,0 +1,13 @@
+; Test that DIFile representation upgrades with introduction of
+; optional source field.
+;
+; RUN: llvm-dis < %s.bc | FileCheck %s
+; RUN: verify-uselistorder < %s.bc
+
+!llvm.dbg.cu = !{!1}
+!llvm.module.flags = !{!3}
+
+!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang version 5.0.1 (tags/RELEASE_501/final)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
+; CHECK-NOT: !DIFile({{.*}}source:{{.*}})
+!2 = !DIFile(filename: "a.c", directory: "/test")
+!3 = !{i32 2, !"Debug Info Version", i32 3}
diff --git a/llvm/test/Bitcode/metadata-source.ll.bc b/llvm/test/Bitcode/metadata-source.ll.bc
new file mode 100644
index 00000000000..b7b0a9e4c33
--- /dev/null
+++ b/llvm/test/Bitcode/metadata-source.ll.bc
Binary files differ
OpenPOWER on IntegriCloud