aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorMingming Liu <mingmingl@google.com>2025-04-23 09:21:07 -0700
committerGitHub <noreply@github.com>2025-04-23 09:21:07 -0700
commit2f0cd0c68ef027f87f34f04141c083212fda2806 (patch)
tree33ce01e991a98db669255eb38b3064dd317ad732 /clang/unittests/libclang/LibclangTest.cpp
parent24c860547e8e595f8bf8d87b52544e2aff243f2e (diff)
downloadllvm-2f0cd0c68ef027f87f34f04141c083212fda2806.zip
llvm-2f0cd0c68ef027f87f34f04141c083212fda2806.tar.gz
llvm-2f0cd0c68ef027f87f34f04141c083212fda2806.tar.bz2
[NFCI] Move ProfOStream from InstrProfWriter.cpp to InstrProf.h/cpp (#136791)
ProfOStream is a wrapper class for output stream, and used by InstrProfWriter.cpp to serialize various profiles, like PGO profiles and MemProf. This change proposes to move it into InstrProf.h/cpp. After this is in, InstrProfWriter can dispatch serialization of various formats into methods like `obj->serialize()`, and the serialization code could be move out of InstrProfWriter.cpp into individual classes (each in a smaller cpp file). One example is that we can gradually move writeMemprof [1] into llvm/*/ProfileData/MemProf.h/cpp, where a couple of classes already have `serialize/deserialize` methods. [1] https://github.com/llvm/llvm-project/blob/85b35a90770b6053f91d79ca685cdfa4bf6499a4/llvm/lib/ProfileData/InstrProfWriter.cpp#L774-L791
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions