DebugInfo: preparation to implement DW_AT_alignment
authorVictor Leschuk <vleschuk@accesssoftek.com>
Thu, 20 Oct 2016 00:13:12 +0000 (00:13 +0000)
committerVictor Leschuk <vleschuk@accesssoftek.com>
Thu, 20 Oct 2016 00:13:12 +0000 (00:13 +0000)
commit2ede126b1b3fae52cddece5cf1f75b474a9c7932
tree0733b4b810dc87c85fda4f44bfa3e74b59cc1e2f
parent7edf93bc5b2bbed4ff9b34ac5126eb210fbbff3c
DebugInfo: preparation to implement DW_AT_alignment

 - Add alignment attribute to DIVariable family
 - Modify bitcode format to match new DIVariable representation
 - Update tests to match these changes (also add bitcode upgrade test)
 - Expect that frontend passes non-zero align value only when it is not default
   (was forcibly aligned by alignas()/_Alignas()/__atribute__(aligned())

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

llvm-svn: 284678
22 files changed:
llvm/include/llvm/IR/DIBuilder.h
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/DIBuilder.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/IR/LLVMContextImpl.h
llvm/test/Assembler/diglobalvariable.ll
llvm/test/Assembler/dilocalvariable.ll
llvm/test/Bitcode/dilocalvariable-3.9.ll [new file with mode: 0644]
llvm/test/Bitcode/dilocalvariable-3.9.ll.bc [new file with mode: 0644]
llvm/test/DebugInfo/AArch64/bitfields.ll
llvm/test/DebugInfo/ARM/big-endian-bitfield.ll
llvm/test/DebugInfo/COFF/bitfields.ll
llvm/test/DebugInfo/X86/bitfields-dwarf4.ll
llvm/test/DebugInfo/X86/bitfields.ll
llvm/test/DebugInfo/X86/debug-info-packed-struct.ll
llvm/unittests/IR/MetadataTest.cpp
llvm/unittests/Transforms/Utils/Cloning.cpp