[clang] [compiler-rt] [llvm] [InstrFDO][TypeProf] Implement binary instrumentation and profile read/write (PR #66825)
Snehasish Kumar via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 4 21:57:04 PST 2024
================
@@ -567,6 +643,21 @@ Error InstrProfSymtab::create(const NameIterRange &IterRange) {
return Error::success();
}
+template <typename FuncNameIterRange, typename VTableNameIterRange>
+Error InstrProfSymtab::create(const FuncNameIterRange &FuncIterRange,
+ const VTableNameIterRange &VTableIterRange) {
+ for (auto Name : FuncIterRange)
----------------
snehasish wrote:
const auto& to avoid a copy. Same for the loop below.
https://github.com/llvm/llvm-project/pull/66825
More information about the cfe-commits
mailing list