diff options
author | Caroline Tice <ctice@apple.com> | 2010-09-20 21:37:42 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-09-20 21:37:42 +0000 |
commit | 12cecd741d8a8069b81fbc9021610b92d1fceb7b (patch) | |
tree | 405cc6ed8a9bfe7f5a110cd6ace9df14280a188e /lldb/source/Target/Process.cpp | |
parent | db5c09a8cde4cd654335d96f6ce992cae7ee846e (diff) | |
download | bcm5719-llvm-12cecd741d8a8069b81fbc9021610b92d1fceb7b.tar.gz bcm5719-llvm-12cecd741d8a8069b81fbc9021610b92d1fceb7b.zip |
Make GetInstanceSettingsValue methods take an Error * rather than an Error &,
and have them return a bool to indicate success or not.
llvm-svn: 114361
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 2f676ca31d7..6c264051742 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1988,11 +1988,11 @@ ProcessInstanceSettings::CopyInstanceSettings (const lldb::InstanceSettingsSP &n m_disable_aslr = new_process_settings->m_disable_aslr; } -void +bool ProcessInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, const ConstString &var_name, StringList &value, - Error &err) + Error *err) { if (var_name == RunArgsVarName()) { @@ -2039,7 +2039,12 @@ ProcessInstanceSettings::GetInstanceSettingsValue (const SettingEntry &entry, value.AppendString ("false"); } else - err.SetErrorStringWithFormat ("unrecognized variable name '%s'", var_name.AsCString()); + { + if (err) + err->SetErrorStringWithFormat ("unrecognized variable name '%s'", var_name.AsCString()); + return false; + } + return true; } const ConstString |