OSDN Git Service

Emit template type and value parameter DIEs for template variables.
authorMatthew Voss <matthew.voss@sony.com>
Wed, 3 Oct 2018 18:44:53 +0000 (18:44 +0000)
committerMatthew Voss <matthew.voss@sony.com>
Wed, 3 Oct 2018 18:44:53 +0000 (18:44 +0000)
commitfff44e68baec63b1788fd3f9092d4836d5a0865c
treedf20f948478032635a4d64cad91437db5592ae37
parent796acd42b6d57b6593056b08bef4f41b149f8370
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343706 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/llvm-c/DebugInfo.h
include/llvm/IR/DIBuilder.h
include/llvm/IR/DebugInfoMetadata.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/MetadataLoader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/IR/AsmWriter.cpp
lib/IR/DIBuilder.cpp
lib/IR/DebugInfo.cpp
lib/IR/DebugInfoMetadata.cpp
lib/IR/LLVMContextImpl.h
test/Assembler/diglobalvariable.ll
test/DebugInfo/X86/template.ll
tools/llvm-c-test/debuginfo.c
unittests/IR/MetadataTest.cpp