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)
commita1f86256623824ba0dadee5a607c047a8aba803d
tree874ff48c93028749a9912a6fd31520dec8b8feae
parent64e936f41c1b733244809ee1b1f1af6ffa2513b3
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

llvm-svn: 263765
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/test/Assembler/disubprogram.ll
llvm/test/DebugInfo/Generic/virtual-index.ll [new file with mode: 0644]