aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBugreport.cpp
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2016-08-11 23:51:28 +0000
committerTodd Fiala <todd.fiala@gmail.com>2016-08-11 23:51:28 +0000
commite1cfbc79420fee0b71bad62f8d413b68a0eca91e (patch)
treeab91f6f91be4051731e37ed69ca9ff8c7bdad1ff /lldb/source/Commands/CommandObjectBugreport.cpp
parent1602421c852d9d7fddbe8c5f014d7861a7848865 (diff)
downloadllvm-e1cfbc79420fee0b71bad62f8d413b68a0eca91e.zip
llvm-e1cfbc79420fee0b71bad62f8d413b68a0eca91e.tar.gz
llvm-e1cfbc79420fee0b71bad62f8d413b68a0eca91e.tar.bz2
Decoupled Options from CommandInterpreter.
Options used to store a reference to the CommandInterpreter instance in the base Options class. This made it impossible to parse options independent of a CommandInterpreter. This change removes the reference from the base class. Instead, it modifies the options-parsing-related methods to take an ExecutionContext pointer, which the options may inspect if they need to do so. Closes https://reviews.llvm.org/D23416 Reviewers: clayborg, jingham llvm-svn: 278440
Diffstat (limited to 'lldb/source/Commands/CommandObjectBugreport.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBugreport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectBugreport.cpp b/lldb/source/Commands/CommandObjectBugreport.cpp
index db8c06c..7dd1979 100644
--- a/lldb/source/Commands/CommandObjectBugreport.cpp
+++ b/lldb/source/Commands/CommandObjectBugreport.cpp
@@ -36,7 +36,7 @@ public:
"bugreport unwind",
"Create a bugreport for a bug in the stack unwinding code.",
nullptr),
- m_option_group(interpreter),
+ m_option_group(),
m_outfile_options()
{
m_option_group.Append (&m_outfile_options, LLDB_OPT_SET_ALL, LLDB_OPT_SET_1 | LLDB_OPT_SET_2 | LLDB_OPT_SET_3);