summaryrefslogtreecommitdiff
path: root/test/Bitcode
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-09-12 21:50:41 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-09-12 21:50:41 +0000
commit76221cbae00c7d6152ea694e095b7aa2c47f58d2 (patch)
tree0dcae3f2220b00accb23bc25c1e352f8f1550bf7 /test/Bitcode
parentbfd98b8dcc694fbbcada03014246d424a2c99d3d (diff)
IR: Represent -ggnu-pubnames with a flag on the DICompileUnit.
This allows the flag to be persisted through to LTO. Differential Revision: https://reviews.llvm.org/D37655 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/dicompileunit-gnu-pubnames.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Bitcode/dicompileunit-gnu-pubnames.ll b/test/Bitcode/dicompileunit-gnu-pubnames.ll
new file mode 100644
index 00000000000..31c28501647
--- /dev/null
+++ b/test/Bitcode/dicompileunit-gnu-pubnames.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as -disable-verify -o - %s | llvm-dis | FileCheck %s
+
+!named = !{!0}
+; CHECK: !DICompileUnit({{.*}}, gnuPubnames: true)
+!0 = distinct !DICompileUnit(language: 12, file: !1, gnuPubnames: true)
+!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")