llvm-project
8bea2ff7 - Reland "[clang][ssaf] Track target triple in TU and LU summaries. #204027" (#204259)

Commit
41 days ago
Reland "[clang][ssaf] Track target triple in TU and LU summaries. #204027" (#204259) This commit introduces the following changes: - Add `TargetTriple` field to `TUSummary`, `LUSummary`, and their encodings. - Frontend captures the triple from `CompilerInstance::getTarget()` when extracting a TU summary. - JSON format reads/writes a `target_triple` field at the root of each summary; reader rejects strings not in `llvm::Triple::normalize` form. - All TU/LU JSON test inputs/outputs and unit tests updated to include the new field. `clang-ssaf-linker` uses a hardcoded triple value for the link unit; surfacing the triple through the tool will be handled in a follow-up PR. rdar://179403011
Author
Parents
Loading