aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp b/contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp
index e0c74e29aaa6..5bcbc236301c 100644
--- a/contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp
+++ b/contrib/llvm-project/lldb/source/Commands/CommandObjectTrace.cpp
@@ -89,8 +89,7 @@ public:
eCommandRequiresProcess | eCommandTryTargetAPILock |
eCommandProcessMustBeLaunched | eCommandProcessMustBePaused |
eCommandProcessMustBeTraced) {
- CommandArgumentData bundle_dir{eArgTypeDirectoryName, eArgRepeatPlain};
- m_arguments.push_back({bundle_dir});
+ AddSimpleArgumentList(eArgTypeDirectoryName);
}
void
@@ -176,8 +175,7 @@ public:
interpreter, "trace load",
"Load a post-mortem processor trace session from a trace bundle.",
"trace load <trace_description_file>") {
- CommandArgumentData session_file_arg{eArgTypeFilename, eArgRepeatPlain};
- m_arguments.push_back({session_file_arg});
+ AddSimpleArgumentList(eArgTypeFilename);
}
void
@@ -332,8 +330,7 @@ public:
"Show the schema of the given trace plugin.",
"trace schema <plug-in>. Use the plug-in name "
"\"all\" to see all schemas.\n") {
- CommandArgumentData plugin_arg{eArgTypeNone, eArgRepeatPlain};
- m_arguments.push_back({plugin_arg});
+ AddSimpleArgumentList(eArgTypeNone);
}
~CommandObjectTraceSchema() override = default;