Define portable macros for packed struct definitions:
authorXinliang David Li <davidxl@google.com>
Wed, 4 Nov 2015 23:42:56 +0000 (23:42 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 4 Nov 2015 23:42:56 +0000 (23:42 +0000)
commit83b18356e682224e5b6fc8fd84272897bf57201d
tree356bd6e6881ee6b1e7e7f04f16732369defaa954
parent9496ef1fefb7a9caa9e5acf9356a59ca5c37c07d
Define portable macros for packed struct definitions:

 1. A macro with argument: LLVM_PACKED(StructDefinition)
 2. A pair of macros defining scope of region with packing:
    LLVM_PACKED_START
     struct A { ... };
     struct B { ... };
    LLVM_PACKED_END

Differential Revision: http://reviews.llvm.org/D14337

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252099 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Compiler.h