forked from OSchip/llvm-project
[ObjectYAML] Use std::optional in CodeViewYAMLSymbols.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
400db9c8a5
commit
b738ea08ec
|
@ -30,6 +30,7 @@
|
|||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -151,7 +152,7 @@ void ScalarEnumerationTraits<RegisterId>::enumeration(IO &io, RegisterId &Reg) {
|
|||
const auto *Header = static_cast<COFF::header *>(io.getContext());
|
||||
assert(Header && "The IO context is not initialized");
|
||||
|
||||
Optional<CPUType> CpuType;
|
||||
std::optional<CPUType> CpuType;
|
||||
ArrayRef<EnumEntry<uint16_t>> RegNames;
|
||||
|
||||
switch (Header->Machine) {
|
||||
|
|
Loading…
Reference in New Issue