================ @@ -18,11 +18,16 @@ * pointers to the live data in memory. This function is probably not what you * want. Use __llvm_profile_get_size_for_buffer instead. Use this function if * your program has a custom memory layout. + * NOTE: The change of function signature requires modifying c source code + * as demonstrated by the existing tests. If this is causing backward + * compatible issues, considering adding another function for new use cases. */ uint64_t __llvm_profile_get_size_for_buffer_internal( const __llvm_profile_data *DataBegin, const __llvm_profile_data *DataEnd, const char *CountersBegin, const char *CountersEnd, const char *NamesBegin, - const char *NamesEnd); + const char *NamesEnd, const VTableProfData *VTableBegin, ---------------- minglotus-6 wrote:
IIUC, this function is used in `llvm-profdata merge` when converting from raw profiles to indexed profiles. I'll add some logs to double check. https://github.com/llvm/llvm-project/pull/66825 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits