diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-06-25 14:10:05 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-06-25 14:10:05 -0700 |
commit | 35d0901ac239469021a36f21e488cf20484f2095 (patch) | |
tree | e071c53b6a03c913cc7a37ad4df84c49ac733a9e /include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | |
parent | e93df18eccc8d9cad27853b805a5a22b124b416d (diff) |
PNaCl wire format: Remove the top-level DATALAYOUT record
PNaCl only supports a fixed data layout, so treat this as implicit in
the pexe file.
Add the data layout field back at read time, to prevent accidentally
using any architecture-specific backend data layout when translating,
and to ensure that any IR passes that use the data layout work
correctly.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3505
TEST=*.ll tests + PNaCl toolchain trybots
Review URL: https://codereview.chromium.org/17591014
Diffstat (limited to 'include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h')
-rw-r--r-- | include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h index 1c4d80efba..0f3755abba 100644 --- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h +++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h @@ -51,7 +51,7 @@ namespace naclbitc { enum NaClModuleCodes { MODULE_CODE_VERSION = 1, // VERSION: [version#] MODULE_CODE_TRIPLE = 2, // Not used in PNaCl - MODULE_CODE_DATALAYOUT = 3, // DATALAYOUT: [strchr x N] + MODULE_CODE_DATALAYOUT = 3, // Not used in PNaCl MODULE_CODE_ASM = 4, // ASM: [strchr x N] MODULE_CODE_SECTIONNAME = 5, // SECTIONNAME: [strchr x N] |