[MachO] Use std::optional in ExportTrie.cpp (NFC)

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
This commit is contained in:
Kazu Hirata 2022-11-26 20:59:04 -08:00
parent dedb16567c
commit 59cc8fb785
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@
#include "llvm/ADT/Optional.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Support/LEB128.h"
#include <optional>
using namespace llvm;
using namespace lld;
@ -81,7 +82,7 @@ struct ExportInfo {
struct macho::TrieNode {
std::vector<Edge> edges;
Optional<ExportInfo> info;
std::optional<ExportInfo> info;
// Estimated offset from the start of the serialized trie to the current node.
// This will converge to the true offset when updateOffset() is run to a
// fixpoint.