No UD_ATTRIBUTE_PACKED for ud_mnemonic_code

I don't think packing the enum into 16-bit is advantageous in any way, also it doesn't happen on MSVC, for which the macro is defined to be empty. The ud struct's size shouldn't change (at least it doesn't on Clang/GCC for 64-bit), only the offset of the mnemonic member would be aligned to 4 bytes.
This commit is contained in:
Sebastian Graf
2014-04-05 17:35:34 +02:00
parent b24baf1e32
commit b293936f25
+1 -1
View File
@@ -319,7 +319,7 @@ class UdItabGenerator:
enum = "enum ud_mnemonic_code {\n "
enum += ",\n ".join( [ "UD_I%s" % m for m in self.getMnemonicsList() ] )
enum += ",\n UD_MAX_MNEMONIC_CODE"
enum += "\n} UD_ATTR_PACKED;\n"
enum += "\n};\n"
self.ItabH.write( enum )
self.ItabH.write( "\n" )