[llvm] Introduction of Composite Profile section in ExtBinary format (PR #166553)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 20:14:59 PDT 2026
================
@@ -642,6 +667,11 @@ unsigned SampleProfileWriterExtBinaryBase::findUnwrittenEntry(SecType Type) {
std::error_code SampleProfileWriterExtBinaryBase::writeOneSection(
SecType Type, const SampleProfileMap &ProfileMap) {
+ // Composite sections require the file version that defines their encoding.
+ if ((Type == SecCompositeProfile || Type == SecCompositeFuncOffsetTable) &&
----------------
snehasish wrote:
nit: use braces to make multi-line conditions clearer
https://github.com/llvm/llvm-project/pull/166553
More information about the llvm-commits
mailing list