[clang] [compiler-rt] [llvm] [InstrFDO][TypeProf] Implement binary instrumentation and profile read/write (PR #66825)
Mingming Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 5 22:09:32 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)
----------------
minglotus-6 wrote:
Spell out 'auto' by using 'StringRef'. `for (StringRef str : strs)` should be efficient whether `strs` is `std::vector<std::string>` or `std::vector<StringRef>`.
https://github.com/llvm/llvm-project/pull/66825
More information about the cfe-commits
mailing list