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
#include "llvm/Support/PluginLoader.h"
#include "llvm/Support/Process.h"
#include <cstdlib>
+#include <optional>
using namespace lld;
using namespace llvm;
return lldMain(argc, const_cast<const char **>(argv), llvm::outs(),
llvm::errs());
- Optional<int> mainRet;
+ std::optional<int> mainRet;
CrashRecoveryContext::Enable();
for (unsigned i = inTestVerbosity(); i > 0; --i) {