================ @@ -560,6 +602,28 @@ Error InstrProfSymtab::addFuncWithName(Function &F, StringRef PGOFuncName) { return Error::success(); } +uint64_t InstrProfSymtab::getVTableHashFromAddress(uint64_t Address) { + finalizeSymtab(); ---------------- minglotus-6 wrote:
This is to make sure the vectors are sorted. * `finalizeSymtab` runs `llvm::sort` the first time it's called and marks `Sorted` as true ; subsequent calls returns early if `Sorted` is true. 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