зеркало из https://github.com/microsoft/clang-1.git
Minor reordering of the serialization of the fields of MemberExpr to result
in a smaller encoding on disk. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
cf78b6a771
Коммит
d073987252
|
@ -685,16 +685,16 @@ void MemberExpr::EmitImpl(Serializer& S) const {
|
|||
S.Emit(MemberLoc);
|
||||
S.EmitPtr(MemberDecl);
|
||||
S.EmitBool(IsArrow);
|
||||
S.EmitOwnedPtr(Base);
|
||||
S.Emit(getType());
|
||||
S.EmitOwnedPtr(Base);
|
||||
}
|
||||
|
||||
MemberExpr* MemberExpr::CreateImpl(Deserializer& D) {
|
||||
SourceLocation L = SourceLocation::ReadVal(D);
|
||||
FieldDecl* MemberDecl = cast<FieldDecl>(D.ReadPtr<Decl>());
|
||||
bool IsArrow = D.ReadBool();
|
||||
Expr* base = D.ReadOwnedPtr<Expr>();
|
||||
QualType T = QualType::ReadVal(D);
|
||||
Expr* base = D.ReadOwnedPtr<Expr>();
|
||||
|
||||
return new MemberExpr(base,IsArrow,MemberDecl,L,T);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче