diff options
author | Matthew Voss <matthew.voss@sony.com> | 2018-10-03 18:44:53 +0000 |
---|---|---|
committer | Matthew Voss <matthew.voss@sony.com> | 2018-10-03 18:44:53 +0000 |
commit | f8ab35a4f464753751c1df2b56b6c2f9c75d56a7 (patch) | |
tree | cd817f07400276d4cf0efea2832f29c75c4d7963 /llvm/test/Assembler/diglobalvariable.ll | |
parent | b80d27a916988f45fa851f23dbb0cdb5649916f7 (diff) | |
download | bcm5719-llvm-f8ab35a4f464753751c1df2b56b6c2f9c75d56a7.tar.gz bcm5719-llvm-f8ab35a4f464753751c1df2b56b6c2f9c75d56a7.zip |
Emit template type and value parameter DIEs for template variables.
Summary:
Ensure the TemplateParam attribute of the DIGlobalVariable node is translated into the proper DIEs.
Resolves https://bugs.llvm.org/show_bug.cgi?id=22119
Reviewers: dblaikie, probinson, aprantl, JDevlieghere, clayborg, whitequark, deadalnix
Reviewed By: dblaikie
Subscribers: llvm-commits
Tags: #debug-info
Differential Revision: https://reviews.llvm.org/D52057
llvm-svn: 343706
Diffstat (limited to 'llvm/test/Assembler/diglobalvariable.ll')
-rw-r--r-- | llvm/test/Assembler/diglobalvariable.ll | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/test/Assembler/diglobalvariable.ll b/llvm/test/Assembler/diglobalvariable.ll index b4ff508bed6..27bf655c30b 100644 --- a/llvm/test/Assembler/diglobalvariable.ll +++ b/llvm/test/Assembler/diglobalvariable.ll @@ -3,8 +3,8 @@ @foo = global i32 0 -; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} +; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10, !11, !12} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10, !11, !12} !0 = !DIFile(filename: "scope.h", directory: "/path/to/dir") !1 = distinct !{} @@ -23,3 +23,8 @@ ; CHECK: !8 = !DIGlobalVariable(name: "mem", scope: !0, type: !9, isLocal: false, isDefinition: true, declaration: !7) !8 = !DIGlobalVariable(name: "mem", scope: !0, declaration: !7, type: !9) !9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) + +; CHECK: !12 = !DIGlobalVariable(name: "bar", linkageName: "bar", scope: !0, file: !2, line: 8, type: !3, isLocal: true, isDefinition: false, templateParams: !11, align: 32) +!10 = !DITemplateTypeParameter(name: "Ty", type: !3) +!11 = distinct !{!10} +!12 = !DIGlobalVariable(name: "bar", linkageName: "bar", scope: !0, file: !2, line: 8, type: !3, isLocal: true, isDefinition: false, templateParams: !11, align: 32) |