[DIBuilder] Make createReferenceType take size and align
authorKeno Fischer <kfischer@college.harvard.edu>
Mon, 16 Nov 2015 07:57:32 +0000 (07:57 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Mon, 16 Nov 2015 07:57:32 +0000 (07:57 +0000)
commit238d6fc46f06f35142b4ccef46d39258052ef1da
treeeab9e20060f1bf9ae12f6b048a491fafad077691
parent99b62327bf3affe2b9e4de6f8bf0b28b60a0b7d3
[DIBuilder] Make createReferenceType take size and align

Summary: Since we're passing references to dbg.value as pointers,
we need to have the frontend properly declare their sizes and
alignments (as it already does for regular pointers) in preparation
for my upcoming patch to have the verifer check that the sizes agree.

Also augment the backend logic that skips actually emitting this
information into DWARF such that it also handles reference types.

Reviewers: aprantl, dexonsmith, dblaikie

Subscribers: dblaikie, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253186 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DIBuilder.h
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/IR/DIBuilder.cpp
test/DebugInfo/Generic/ptrsize.ll [new file with mode: 0755]