[lld] Use std::optional in lld.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
43429cde4d
commit
1117d91bb2
|
@ -41,6 +41,7 @@
|
||||||
#include "llvm/Support/PluginLoader.h"
|
#include "llvm/Support/PluginLoader.h"
|
||||||
#include "llvm/Support/Process.h"
|
#include "llvm/Support/Process.h"
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <optional>
|
||||||
|
|
||||||
using namespace lld;
|
using namespace lld;
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
@ -228,7 +229,7 @@ int lld_main(int argc, char **argv) {
|
||||||
return lldMain(argc, const_cast<const char **>(argv), llvm::outs(),
|
return lldMain(argc, const_cast<const char **>(argv), llvm::outs(),
|
||||||
llvm::errs());
|
llvm::errs());
|
||||||
|
|
||||||
Optional<int> mainRet;
|
std::optional<int> mainRet;
|
||||||
CrashRecoveryContext::Enable();
|
CrashRecoveryContext::Enable();
|
||||||
|
|
||||||
for (unsigned i = inTestVerbosity(); i > 0; --i) {
|
for (unsigned i = inTestVerbosity(); i > 0; --i) {
|
||||||
|
|
Loading…
Reference in New Issue