aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp b/contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp
index fd028d4f62f2..44561cfd736e 100644
--- a/contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp
+++ b/contrib/llvm-project/lldb/source/Commands/CommandObjectSource.cpp
@@ -25,6 +25,7 @@
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Utility/FileSpec.h"
+#include <optional>
using namespace lldb;
using namespace lldb_private;
@@ -98,7 +99,7 @@ class CommandObjectSourceInfo : public CommandObjectParsed {
}
llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
- return llvm::makeArrayRef(g_source_info_options);
+ return llvm::ArrayRef(g_source_info_options);
}
// Instance variables to hold the values for command options.
@@ -695,7 +696,7 @@ class CommandObjectSourceList : public CommandObjectParsed {
}
llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
- return llvm::makeArrayRef(g_source_list_options);
+ return llvm::ArrayRef(g_source_list_options);
}
// Instance variables to hold the values for command options.
@@ -721,8 +722,8 @@ public:
Options *GetOptions() override { return &m_options; }
- llvm::Optional<std::string> GetRepeatCommand(Args &current_command_args,
- uint32_t index) override {
+ std::optional<std::string> GetRepeatCommand(Args &current_command_args,
+ uint32_t index) override {
// This is kind of gross, but the command hasn't been parsed yet so we
// can't look at the option values for this invocation... I have to scan
// the arguments directly.