OSDN Git Service

Solidify the assumption that a DW_TAG_subprogram's type is a DW_TAG_subroutine_type
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 22 May 2013 23:22:18 +0000 (23:22 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 22 May 2013 23:22:18 +0000 (23:22 +0000)
commit3d33184d9da02fb699827249e0631106252f72fa
tree6f7a6626fc0d65838ac1f9c474e2c4a3ece91c47
parent62c320a755ac27ac2b7f64e927892249e0f486e0
Solidify the assumption that a DW_TAG_subprogram's type is a DW_TAG_subroutine_type

There were bits & pieces of code lying around that may've given the
impression that debug info metadata supported the possibility that a
subprogram's type could be specified by a non-subroutine type describing
the return type of a void function. This support was incomplete &
unnecessary. Asserts & API have been changed to make the desired usage
more clear.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182532 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DIBuilder.h
include/llvm/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/IR/DIBuilder.cpp
test/DebugInfo/X86/low-pc-cu.ll