[llvm] [Profile] Refactor profile correlation. (PR #69656)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 13:30:35 PDT 2023
================
@@ -42,10 +64,10 @@ const char *InstrProfCorrelator::NumCountersAttributeName = "Num Counters";
llvm::Expected<std::unique_ptr<InstrProfCorrelator::Context>>
InstrProfCorrelator::Context::get(std::unique_ptr<MemoryBuffer> Buffer,
const object::ObjectFile &Obj) {
- auto CountersSection = getCountersSection(Obj);
+ auto C = std::make_unique<Context>();
----------------
ellishg wrote:
NIT: Can we move this line back down to avoid the change?
https://github.com/llvm/llvm-project/pull/69656
More information about the llvm-commits
mailing list