diff options
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfCorrelator.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfCorrelator.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/ProfileData/InstrProfCorrelator.cpp b/llvm/lib/ProfileData/InstrProfCorrelator.cpp index 8e38a6869d07..4b8212c546f7 100644 --- a/llvm/lib/ProfileData/InstrProfCorrelator.cpp +++ b/llvm/lib/ProfileData/InstrProfCorrelator.cpp @@ -7,10 +7,15 @@ //===----------------------------------------------------------------------===// #include "llvm/ProfileData/InstrProfCorrelator.h" +#include "llvm/DebugInfo/DIContext.h" +#include "llvm/DebugInfo/DWARF/DWARFContext.h" +#include "llvm/DebugInfo/DWARF/DWARFDie.h" +#include "llvm/DebugInfo/DWARF/DWARFExpression.h" +#include "llvm/DebugInfo/DWARF/DWARFFormValue.h" +#include "llvm/DebugInfo/DWARF/DWARFLocationExpression.h" +#include "llvm/DebugInfo/DWARF/DWARFUnit.h" #include "llvm/Object/MachO.h" #include "llvm/Support/Debug.h" -#include "llvm/Support/FileSystem.h" -#include "llvm/Support/Path.h" #define DEBUG_TYPE "correlator" @@ -279,7 +284,7 @@ void DwarfInstrProfCorrelator<IntPtrT>::correlateProfileDataImpl() { LLVM_DEBUG(Die.dump(dbgs())); } this->addProbe(*FunctionName, *CFGHash, *CounterPtr - CountersStart, - FunctionPtr.getValueOr(0), *NumCounters); + FunctionPtr.value_or(0), *NumCounters); }; for (auto &CU : DICtx->normal_units()) for (const auto &Entry : CU->dies()) |