diff options
author | Karl Schimpf <kschimpf@google.com> | 2013-09-03 14:04:17 -0700 |
---|---|---|
committer | Karl Schimpf <kschimpf@google.com> | 2013-09-03 14:04:17 -0700 |
commit | eb10318143cc0045a053a1973e4aeaf246e53984 (patch) | |
tree | cc1b6e097abc12a5532e61a14429f04ece95e37a /include | |
parent | 30aa17affbfa35a9d32895ff6f4b5f5fbfc9575a (diff) |
Remove generating STRUCT_ANON records in PNaCl bitcode files.
Don't generate types for elided cast instructions, since they
are never put into the bitcode file. In addition, do not generate
a type id for the types of global variables, because they are never
needed. Don't allow STRUCT_ANON in bitcode files PNaClVersion==2.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3648
R=jvoung@chromium.org
Review URL: https://codereview.chromium.org/23455023
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h index 76367ff34a..59fadf26a2 100644 --- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h +++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h @@ -105,7 +105,10 @@ namespace naclbitc { TYPE_CODE_X86_MMX = 17, // Not used in PNaCl. - TYPE_CODE_STRUCT_ANON = 18, // STRUCT_ANON: [ispacked, eltty x N] + TYPE_CODE_STRUCT_ANON = 18, // PNaCl version 1 (early versions only) + // STRUCT_ANON: [ispacked, eltty x N] + // Not used in PNaCl otherwise (i.e. + // PNaCl versions 1+). TYPE_CODE_STRUCT_NAME = 19, // Not used in PNaCl. TYPE_CODE_STRUCT_NAMED = 20,// Not used in PNaCl. |