aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2024-10-09 14:49:09 -0700
committerGitHub <noreply@github.com>2024-10-09 14:49:09 -0700
commitc55d68fcc67d70235d6e4b75fe3879ab4d24a6b6 (patch)
tree6582f9ecde7b359da82d7bfa0ba898715826050c /clang/lib/CodeGen/BackendUtil.cpp
parent91dd4ec20e8371ea5e920f5493688e13306a67d2 (diff)
downloadllvm-c55d68fcc67d70235d6e4b75fe3879ab4d24a6b6.zip
llvm-c55d68fcc67d70235d6e4b75fe3879ab4d24a6b6.tar.gz
llvm-c55d68fcc67d70235d6e4b75fe3879ab4d24a6b6.tar.bz2
[clang][deps] Serialize JSON without creating intermediate objects (#111734)
The dependency scanner uses the `llvm::json` library for outputting the dependency information. Until now, it created an in-memory representation of the dependency graph using the `llvm::json::Object` hierarchy. This not only creates unnecessary copies of the data, but also forces lexicographical ordering of attributes in the output, both of which I'd like to avoid. This patch adopts the `llvm::json::OStream` API instead and reorders the attribute printing logic such that the existing lexicographical ordering is preserved (for now).
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions