aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2013-06-19 08:49:12 -0700
committerKarl Schimpf <kschimpf@google.com>2013-06-19 08:49:12 -0700
commit8cbf33322a220878bba45b8c7977e69b1ca348d4 (patch)
treeb83a2db80fd363a9e538d2f77d7d71818a3ac159 /include
parent139165f35e841945b94685bdd91243f5b14d0a7a (diff)
Insulate calling conventions in PNaCl bitcode files.
Creates a bitcode-local enumeration for calling conventions for the PNaCl bitcode file, so that the bitcode file is better protected from (accidental) changes in LLVM code. Also removes invokes from the bitcode. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3497 R=dschuff@chromium.org, mseaborn@chromium.org Review URL: https://codereview.chromium.org/17118002
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
index b402ca2db8..49c23469b9 100644
--- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
+++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
@@ -269,6 +269,11 @@ namespace naclbitc {
ORDERING_SEQCST = 6
};
+ /// Encoded function calling conventions.
+ enum NaClCallingConventions {
+ C_CallingConv = 0
+ };
+
/// Encoded SynchronizationScope values.
enum NaClAtomicSynchScopeCodes {
SYNCHSCOPE_SINGLETHREAD = 0,