diff options
Diffstat (limited to 'llvm/lib/CodeGen/MBFIWrapper.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MBFIWrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MBFIWrapper.cpp b/llvm/lib/CodeGen/MBFIWrapper.cpp index efebb18c9908..5b388be27839 100644 --- a/llvm/lib/CodeGen/MBFIWrapper.cpp +++ b/llvm/lib/CodeGen/MBFIWrapper.cpp @@ -11,9 +11,9 @@ // //===----------------------------------------------------------------------===// -#include "llvm/ADT/Optional.h" #include "llvm/CodeGen/MachineBlockFrequencyInfo.h" #include "llvm/CodeGen/MBFIWrapper.h" +#include <optional> using namespace llvm; @@ -31,7 +31,7 @@ void MBFIWrapper::setBlockFreq(const MachineBasicBlock *MBB, MergedBBFreq[MBB] = F; } -Optional<uint64_t> +std::optional<uint64_t> MBFIWrapper::getBlockProfileCount(const MachineBasicBlock *MBB) const { auto I = MergedBBFreq.find(MBB); |