]> granicus.if.org Git - llvm/commit
DebugInfo: support for DWARFv5 DW_AT_alignment attribute
authorVictor Leschuk <vleschuk@accesssoftek.com>
Wed, 26 Oct 2016 11:59:03 +0000 (11:59 +0000)
committerVictor Leschuk <vleschuk@accesssoftek.com>
Wed, 26 Oct 2016 11:59:03 +0000 (11:59 +0000)
commit0ab9364cdd2b6699cac3eae370a94bee560c09b5
treeecef84b17a931fe4fb17a41773898998d81fc8f4
parent42dcce53862fd20a08f9041d8efe1225a20e5967
DebugInfo: support for DWARFv5 DW_AT_alignment attribute

* Assume that clang passes non-zero alignment value to DIBuilder
only in case when it was forced by C++11 'alignas', C11 '_Alignas'
or compiler attribute '__attribute__((aligned (N)))'.

* Emit DW_AT_alignment if alignment is specified for type/object.

Differential Revision: https://reviews.llvm.org/D24425

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285189 91177308-0d34-0410-b5e6-96231b3b80d8
docs/SourceLevelDebugging.rst
include/llvm/IR/DebugInfoMetadata.h
include/llvm/Support/Dwarf.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/Support/Dwarf.cpp
test/DebugInfo/X86/align_c11.ll [new file with mode: 0644]
test/DebugInfo/X86/align_cpp11.ll [new file with mode: 0644]
test/DebugInfo/X86/align_objc.ll [new file with mode: 0644]
test/DebugInfo/X86/dwarf-public-names.ll