Revert "IRGen: Redesign enum codegen to break payloads into word-sized chunks."

This is asserting on the bots:

Assertion failed: ((~mask & value) == 0 && "value has masked out bits set?!"), function emitCompare

Swift SVN r28983
This commit is contained in:
Ted Kremenek
2015-05-24 05:38:53 +00:00
parent 3691991374
commit bbf61217cd
28 changed files with 1722 additions and 2093 deletions

View File

@@ -391,6 +391,8 @@ private:
llvm::DenseMap<llvm::Type *, SpareBitVector> SpareBitsForTypes;
std::unique_ptr<const EnumImplStrategy> TheUnimplementedEnumImplStrategy;
//--- Types -----------------------------------------------------------------
public:
const ProtocolInfo &getProtocolInfo(ProtocolDecl *D);
@@ -427,6 +429,8 @@ public:
clang::CanQual<clang::Type> getClangType(CanType type);
clang::CanQual<clang::Type> getClangType(SILType type);
const EnumImplStrategy &getUnimplementedEnumImplStrategy();
const clang::ASTContext &getClangASTContext() {
assert(ClangASTContext &&
"requesting clang AST context without clang importer!");