mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 08:56:15 +08:00
Move Args::StringTo*** functions to a new OptionArgParser class
Summary: The idea behind this is to move the functionality which depend on other lldb classes into a separate class. This way, the Args class can be turned into a lightweight arc+argv wrapper and moved into the lower lldb layers. Reviewers: jingham, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D44306 llvm-svn: 329677
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include "lldb/Initialization/SystemLifetimeManager.h"
|
||||
#include "lldb/Interpreter/Args.h"
|
||||
#include "lldb/Interpreter/CommandInterpreter.h"
|
||||
#include "lldb/Interpreter/OptionArgParser.h"
|
||||
#include "lldb/Interpreter/OptionGroupPlatform.h"
|
||||
#include "lldb/Target/Process.h"
|
||||
#include "lldb/Target/TargetList.h"
|
||||
@@ -480,8 +481,8 @@ bool SBDebugger::SetDefaultArchitecture(const char *arch_name) {
|
||||
ScriptLanguage
|
||||
SBDebugger::GetScriptingLanguage(const char *script_language_name) {
|
||||
if (!script_language_name) return eScriptLanguageDefault;
|
||||
return Args::StringToScriptLanguage(llvm::StringRef(script_language_name),
|
||||
eScriptLanguageDefault, nullptr);
|
||||
return OptionArgParser::ToScriptLanguage(
|
||||
llvm::StringRef(script_language_name), eScriptLanguageDefault, nullptr);
|
||||
}
|
||||
|
||||
const char *SBDebugger::GetVersionString() {
|
||||
|
||||
Reference in New Issue
Block a user