aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-04 19:06:47 +0000
committerFangrui Song <i@maskray.me>2022-12-04 19:06:47 +0000
commit7d43c3ba51fd7efe4ff7b9d86067c2563f639dab (patch)
tree5bcba5701db022c6908cd66e7e234a623837ed7c /llvm/lib/LTO/LTO.cpp
parentea47ccc78f953d7201601ae1a9da64c6e7865f54 (diff)
downloadllvm-7d43c3ba51fd7efe4ff7b9d86067c2563f639dab.zip
llvm-7d43c3ba51fd7efe4ff7b9d86067c2563f639dab.tar.gz
llvm-7d43c3ba51fd7efe4ff7b9d86067c2563f639dab.tar.bz2
IR: HotnessThreshold llvm::Optional => std::optional
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 27787d9..f3e1eda 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -1645,7 +1645,7 @@ Error LTO::runThinLTO(AddStreamFn AddStream, FileCache Cache,
Expected<std::unique_ptr<ToolOutputFile>> lto::setupLLVMOptimizationRemarks(
LLVMContext &Context, StringRef RemarksFilename, StringRef RemarksPasses,
StringRef RemarksFormat, bool RemarksWithHotness,
- Optional<uint64_t> RemarksHotnessThreshold, int Count) {
+ std::optional<uint64_t> RemarksHotnessThreshold, int Count) {
std::string Filename = std::string(RemarksFilename);
// For ThinLTO, file.opt.<format> becomes
// file.opt.<format>.thin.<num>.<format>.