From 59cc8fb785621c4c657c1a499a36624d9089f1ea Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 26 Nov 2022 20:59:04 -0800 Subject: [PATCH] [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 --- lld/MachO/ExportTrie.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lld/MachO/ExportTrie.cpp b/lld/MachO/ExportTrie.cpp index b95ad9b..810864f 100644 --- a/lld/MachO/ExportTrie.cpp +++ b/lld/MachO/ExportTrie.cpp @@ -42,6 +42,7 @@ #include "llvm/ADT/Optional.h" #include "llvm/BinaryFormat/MachO.h" #include "llvm/Support/LEB128.h" +#include using namespace llvm; using namespace lld; @@ -81,7 +82,7 @@ struct ExportInfo { struct macho::TrieNode { std::vector edges; - Optional info; + std::optional 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. -- 2.7.4