[NFC] Move readAPValue/writeAPValue up the inheritance hierarchy
authorVarun Gandhi <varun_gandhi@apple.com>
Wed, 6 Jan 2021 22:34:20 +0000 (14:34 -0800)
committerVarun Gandhi <varun_gandhi@apple.com>
Thu, 7 Jan 2021 00:44:50 +0000 (16:44 -0800)
commit37e83bc6db3ad7d9a5d182694ebe71ebbc6120de
tree945cbf57ee8123d0e84385c34815753b404ee683
parent7a8ced43d7ec60f184ed88cc2dd085aba900ce3b
[NFC] Move readAPValue/writeAPValue up the inheritance hierarchy

The implementation for (de)serialization of APValues can be shared
between Clang and Swift, so we prefer pushing the methods up
the inheritance hierarchy, instead of having the methods live in
ASTReader/ASTWriter. Fixes rdar://72592937.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D94196
clang/include/clang/AST/APValue.h
clang/include/clang/AST/AbstractBasicReader.h
clang/include/clang/AST/AbstractBasicWriter.h
clang/include/clang/AST/PropertiesBase.td
clang/include/clang/Serialization/ASTRecordReader.h
clang/include/clang/Serialization/ASTRecordWriter.h
clang/include/clang/Serialization/ASTWriter.h
clang/lib/AST/APValue.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/utils/TableGen/ClangASTPropertiesEmitter.cpp