[LLVMdev] IntervalMap - maximum alignment requirements

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Mar 28 10:42:15 PDT 2012


On Mar 21, 2012, at 11:20 AM, James Molloy <james.molloy at arm.com> wrote:

> Should the documentation be updated to reflect this requirement (and RuntimeDyldELF rewritten to follow it) or should we fix IntervalMap? (my current hack fix is to add __attribute__((aligned)) to the end of the ‘data[]’ member, but I’m sure that’s not the best way).

You could use the same trick as SmallVectorBase and put data[] in a union with some other types.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120328/789efff6/attachment.html>


More information about the llvm-dev mailing list