OSDN Git Service

DebugInfo: Add ability to not emit DW_AT_vtable_elem_location for virtual functions.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 17 Mar 2016 23:58:03 +0000 (23:58 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 17 Mar 2016 23:58:03 +0000 (23:58 +0000)
commit4c97b94439fcc42f534b9785beb7c8ad0f5c0703
treec3660b0028130df0d323325874e30b8ebdc70bc0
parent98c136b041aa2846fc704c634c13b8c7cc4cf877
DebugInfo: Add ability to not emit DW_AT_vtable_elem_location for virtual functions.

A virtual index of -1u indicates that the subprogram's virtual index is
unrepresentable (for example, when using the relative vtable ABI), so do
not emit a DW_AT_vtable_elem_location attribute for it.

Differential Revision: http://reviews.llvm.org/D18236

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263765 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h
lib/AsmParser/LLParser.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/IR/AsmWriter.cpp
test/Assembler/disubprogram.ll
test/DebugInfo/Generic/virtual-index.ll [new file with mode: 0644]