aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-03 18:38:12 +0000
committerFangrui Song <i@maskray.me>2022-12-03 18:38:12 +0000
commitbac974278c5e5a3d6dea40d2d22cb36bcc487cee (patch)
tree57f874fd685c64b48a2a4171ae97dfbd72998a00 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parentd7a1351bb8d74af7fb5ed4b9df3125b193f2984b (diff)
downloadllvm-bac974278c5e5a3d6dea40d2d22cb36bcc487cee.zip
llvm-bac974278c5e5a3d6dea40d2d22cb36bcc487cee.tar.gz
llvm-bac974278c5e5a3d6dea40d2d22cb36bcc487cee.tar.bz2
CodeGen/CommandFlags: Convert Optional to std::optional
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 5fa11fa..ffc3de2 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -86,7 +86,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTarget() {
// WebAssembly Lowering public interface.
//===----------------------------------------------------------------------===//
-static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM,
+static Reloc::Model getEffectiveRelocModel(std::optional<Reloc::Model> RM,
const Triple &TT) {
if (!RM) {
// Default to static relocation model. This should always be more optimial
@@ -109,7 +109,7 @@ static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM,
///
WebAssemblyTargetMachine::WebAssemblyTargetMachine(
const Target &T, const Triple &TT, StringRef CPU, StringRef FS,
- const TargetOptions &Options, Optional<Reloc::Model> RM,
+ const TargetOptions &Options, std::optional<Reloc::Model> RM,
std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL, bool JIT)
: LLVMTargetMachine(
T,