Skip to content

Commit 71b31d3

Browse files
committed
[lldb] Use llvm::Optional instead of std::optional
1 parent b1c0400 commit 71b31d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lldb/include/lldb/Core/Section.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ class SectionList {
102102

103103
struct JSONSection {
104104
std::string name;
105-
std::optional<lldb::SectionType> type;
106-
std::optional<uint64_t> address;
107-
std::optional<uint64_t> size;
105+
llvm::Optional<lldb::SectionType> type;
106+
llvm::Optional<uint64_t> address;
107+
llvm::Optional<uint64_t> size;
108108
};
109109

110110
class Section : public std::enable_shared_from_this<Section>,

lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ObjectFileJSON : public ObjectFile {
9292
struct Header {
9393
std::string triple;
9494
std::string uuid;
95-
std::optional<ObjectFile::Type> type;
95+
llvm::Optional<ObjectFile::Type> type;
9696
};
9797

9898
struct Body {
@@ -104,7 +104,7 @@ class ObjectFileJSON : public ObjectFile {
104104
ArchSpec m_arch;
105105
UUID m_uuid;
106106
ObjectFile::Type m_type;
107-
std::optional<uint64_t> m_size;
107+
llvm::Optional<uint64_t> m_size;
108108
std::vector<JSONSymbol> m_symbols;
109109
std::vector<JSONSection> m_sections;
110110

0 commit comments

Comments
 (0)