[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:
parent
dedb16567c
commit
59cc8fb785
|
@ -42,6 +42,7 @@
|
||||||
#include "llvm/ADT/Optional.h"
|
#include "llvm/ADT/Optional.h"
|
||||||
#include "llvm/BinaryFormat/MachO.h"
|
#include "llvm/BinaryFormat/MachO.h"
|
||||||
#include "llvm/Support/LEB128.h"
|
#include "llvm/Support/LEB128.h"
|
||||||
|
#include <optional>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
using namespace lld;
|
using namespace lld;
|
||||||
|
@ -81,7 +82,7 @@ struct ExportInfo {
|
||||||
|
|
||||||
struct macho::TrieNode {
|
struct macho::TrieNode {
|
||||||
std::vector<Edge> edges;
|
std::vector<Edge> edges;
|
||||||
Optional<ExportInfo> info;
|
std::optional<ExportInfo> info;
|
||||||
// Estimated offset from the start of the serialized trie to the current node.
|
// 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
|
// This will converge to the true offset when updateOffset() is run to a
|
||||||
// fixpoint.
|
// fixpoint.
|
||||||
|
|
Loading…
Reference in New Issue