case CaseStmtClass:
return CaseStmt::directMaterialize(D);
+ case CharacterLiteralClass:
+ return CharacterLiteral::directMaterialize(D);
+
case CompoundStmtClass:
return CompoundStmt::directMaterialize(D);
return stmt;
}
+void CharacterLiteral::directEmit(llvm::Serializer& S) const {
+ S.Emit(Value);
+ S.Emit(Loc);
+ S.Emit(getType());
+}
+
+CharacterLiteral* CharacterLiteral::directMaterialize(llvm::Deserializer& D) {
+ unsigned value = D.ReadInt();
+ SourceLocation Loc = SourceLocation::ReadVal(D);
+ QualType T = QualType::ReadVal(D);
+ return new CharacterLiteral(value,T,Loc);
+}
+
void CompoundStmt::directEmit(llvm::Serializer& S) const {
S.Emit(LBracLoc);
S.Emit(RBracLoc);
// Iterators
virtual child_iterator child_begin();
virtual child_iterator child_end();
+
+ virtual void directEmit(llvm::Serializer& S) const;
+ static CharacterLiteral* directMaterialize(llvm::Deserializer& D);
};
class FloatingLiteral : public Expr {