mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
[lldb] Remove ConstString from GetPluginNameStatic of some plugins
This patch deals with ObjectFile, ObjectContainer and OperatingSystem plugins. I'll convert the other types in separate patches. In order to enable piecemeal conversion, I am leaving some ConstStrings in the lowest PluginManager layers. I'll convert those as the last step. Differential Revision: https://reviews.llvm.org/D112061
This commit is contained in:
@@ -1216,7 +1216,7 @@ public:
|
||||
|
||||
switch (short_option) {
|
||||
case 'p':
|
||||
m_requested_plugin_name.SetString(option_arg);
|
||||
m_requested_plugin_name = option_arg.str();
|
||||
break;
|
||||
case 's':
|
||||
m_requested_save_core_style =
|
||||
@@ -1233,12 +1233,12 @@ public:
|
||||
|
||||
void OptionParsingStarting(ExecutionContext *execution_context) override {
|
||||
m_requested_save_core_style = eSaveCoreUnspecified;
|
||||
m_requested_plugin_name.Clear();
|
||||
m_requested_plugin_name.clear();
|
||||
}
|
||||
|
||||
// Instance variables to hold the values for command options.
|
||||
SaveCoreStyle m_requested_save_core_style;
|
||||
ConstString m_requested_plugin_name;
|
||||
std::string m_requested_plugin_name;
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user