aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-04 22:43:14 +0000
committerFangrui Song <i@maskray.me>2022-12-04 22:43:14 +0000
commitb0df70403d20e8aad5eb1abe147441d8763f333b (patch)
treebd24394ccb3916123680926f8305dcd633f82f93 /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
parent7f773ce6fc98a31b3466be02c020439414c2da24 (diff)
downloadllvm-b0df70403d20e8aad5eb1abe147441d8763f333b.zip
llvm-b0df70403d20e8aad5eb1abe147441d8763f333b.tar.gz
llvm-b0df70403d20e8aad5eb1abe147441d8763f333b.tar.bz2
[Target] llvm::Optional => std::optional
The updated functions are mostly internal with a few exceptions (virtual functions in TargetInstrInfo.h, TargetRegisterInfo.h). To minimize changes to LLVMCodeGen, GlobalISel files are skipped. https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
index 40a4b7d..e60f139 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
@@ -50,7 +50,7 @@ using namespace llvm;
// SelectionDAGISel::runOnMachineFunction. We have to do it in two places
// because we want to do it while building the selection DAG for uses of alloca,
// but not all alloca instructions are used so we have to follow up afterwards.
-Optional<unsigned>
+std::optional<unsigned>
WebAssemblyFrameLowering::getLocalForStackObject(MachineFunction &MF,
int FrameIndex) {
MachineFrameInfo &MFI = MF.getFrameInfo();