HomePhabricator

Fix SectionPiece size when compiling with MSVC

Authored by hansw on Oct 20 2016, 8:59 AM.

Description

Fix SectionPiece size when compiling with MSVC

Builds were failing with:

InputSection.h(139): error C2338: SectionPiece is too big

because MSVC does record layout differently, probably not packing the
'OutputOff' and 'Live' bitfields because their types are of different
size. Using size_t for 'Live' seems to fix it.

llvm-svn: 284740

Details

Committed
hanswOct 20 2016, 8:59 AM
Parents
rG922b63b7f1eb: Remove a use of llvm::AlignOf that I missed.
Branches
Unknown
Tags
Unknown