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/ADT/SmallVector.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/PrettyStackTrace.h"
+#include <optional>
// The main() functions in typical LLVM tools start with InitLLVM which does
// the following one-time initializations:
private:
BumpPtrAllocator Alloc;
SmallVector<const char *, 0> Args;
- Optional<PrettyStackTraceProgram> StackPrinter;
+ std::optional<PrettyStackTraceProgram> StackPrinter;
};
} // namespace llvm