DebugInfo: pass alignment value only if it was forced
authorVictor Leschuk <vleschuk@accesssoftek.com>
Thu, 20 Oct 2016 00:13:19 +0000 (00:13 +0000)
committerVictor Leschuk <vleschuk@accesssoftek.com>
Thu, 20 Oct 2016 00:13:19 +0000 (00:13 +0000)
commita7ece03b322c5cef25b90c82e51e8860d8be2a2f
treed5d90e9e6fa223a7218f42f8afa829dd5054d4e3
parent2ede126b1b3fae52cddece5cf1f75b474a9c7932
DebugInfo: pass alignment value only if it was forced

Preparation to implement DW_AT_alignment support:
 - We pass non-zero align value to DIBuilder only when alignment was forced
 - Modify tests to match this change

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

llvm-svn: 284679
24 files changed:
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/test/CodeGen/debug-info-packed-struct.c
clang/test/CodeGen/debug-info-vector.c
clang/test/CodeGenCXX/debug-info-calling-conventions.cpp
clang/test/CodeGenCXX/debug-info-enum-class.cpp
clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
clang/test/CodeGenCXX/debug-info-ms-bitfields.cpp
clang/test/CodeGenCXX/debug-info-ms-ptr-to-member.cpp
clang/test/CodeGenCXX/debug-info-rvalue-ref.cpp
clang/test/CodeGenCXX/debug-info-template-quals.cpp
clang/test/CodeGenCXX/debug-info-template.cpp
clang/test/CodeGenCXX/debug-info-union.cpp
clang/test/CodeGenCXX/debug-info-uuid.cpp
clang/test/CodeGenCXX/debug-info-vla.cpp
clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
clang/test/CodeGenCXX/debug-info.cpp
clang/test/CodeGenCXX/debug-lambda-this.cpp
clang/test/CodeGenObjC/block-byref-debuginfo.m
clang/test/CodeGenObjC/debug-info-block-type.m
clang/test/CodeGenObjC/debug-info-ivars-extension.m
clang/test/CodeGenObjC/debug-info-ivars-private.m
clang/test/CodeGenObjC/debug-info-ivars.m
clang/test/CodeGenObjCXX/debug-info-cyclic.mm