diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-12 21:50:41 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-12 21:50:41 +0000 |
| commit | b52e23669cbd8637819d9ff7777d43cbc3bf8f31 (patch) | |
| tree | 50b6f514a58df8209c56928ac50a4fa1bc041c6e /llvm/test/Bitcode | |
| parent | e4dacb750da45f4183ae67868d7283a89efe0b40 (diff) | |
| download | bcm5719-llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.tar.gz bcm5719-llvm-b52e23669cbd8637819d9ff7777d43cbc3bf8f31.zip | |
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
llvm-svn: 313078
Diffstat (limited to 'llvm/test/Bitcode')
| -rw-r--r-- | llvm/test/Bitcode/dicompileunit-gnu-pubnames.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/dicompileunit-gnu-pubnames.ll b/llvm/test/Bitcode/dicompileunit-gnu-pubnames.ll new file mode 100644 index 00000000000..31c28501647 --- /dev/null +++ b/llvm/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") |

