diff options
author | Bob Wilson <bob.wilson@apple.com> | 2015-07-28 04:05:45 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2015-07-28 04:05:45 +0000 |
commit | 043ee65ef3c27191db3ca6618e1ee6497ade094d (patch) | |
tree | 4311d7396af2b1a4b83ec1f45ef87ed5c58471d5 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 6c7a18659979f0d7205fae1bf4767066d2474a8e (diff) | |
download | llvm-043ee65ef3c27191db3ca6618e1ee6497ade094d.zip llvm-043ee65ef3c27191db3ca6618e1ee6497ade094d.tar.gz llvm-043ee65ef3c27191db3ca6618e1ee6497ade094d.tar.bz2 |
Reserve some constant values for the Swift calling convention.
Swift has a custom calling convention that also requires some new flags
on arguments and one new attribute on alloca instructions. This patch
does not include the implementation of that calling convention - that
will be provided as part of the open-source release of Swift; this only
reserves the bitcode constant values so that they are not used for
other purposes.
llvm-svn: 243379
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 1a70ba5..31ae014 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -1902,6 +1902,8 @@ static void WriteInstruction(const Instruction &I, unsigned InstID, assert(AlignRecord < 1 << 5 && "alignment greater than 1 << 64"); AlignRecord |= AI.isUsedWithInAlloca() << 5; AlignRecord |= 1 << 6; + // Reserve bit 7 for SwiftError flag. + // AlignRecord |= AI.isSwiftError() << 7; Vals.push_back(AlignRecord); break; } |