[lli/COFF] Set the correct alignment for common symbols
authorDavide Italiano <davide@freebsd.org>
Wed, 2 Nov 2016 17:32:19 +0000 (17:32 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 2 Nov 2016 17:32:19 +0000 (17:32 +0000)
commit6b2bba14a9266c944859fa2af9c5a311ae5c56f9
treed1752db081d926b78976832544968b12a1a58e44
parentbf9ee26aeaba8bc1bf05c092a74c44fa3fca0be6
[lli/COFF] Set the correct alignment for common symbols

Otherwise we set it always to zero, which is not correct,
and we assert inside alignTo (Assertion failed:
Align != 0u && "Align can't be 0.").

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

llvm-svn: 285841
llvm/include/llvm/Object/COFF.h
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/ExecutionEngine/MCJIT/coff-alignment.ll [new file with mode: 0644]