mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 10:08:59 +08:00
[lldb] Eliminate {Get,Set}PropertyAtIndexAsFileSpec (NFC)
This patch is a continuation of 6f8b33f6df and eliminates the
{Get,Set}PropertyAtIndexAsFileSpec functions.
This commit is contained in:
@@ -214,7 +214,7 @@ void ProcessProperties::SetExtraStartupCommands(const Args &args) {
|
||||
|
||||
FileSpec ProcessProperties::GetPythonOSPluginPath() const {
|
||||
const uint32_t idx = ePropertyPythonOSPluginPath;
|
||||
return m_collection_sp->GetPropertyAtIndexAsFileSpec(idx);
|
||||
return GetPropertyAtIndexAs<FileSpec>(idx, {});
|
||||
}
|
||||
|
||||
uint32_t ProcessProperties::GetVirtualAddressableBits() const {
|
||||
@@ -229,7 +229,7 @@ void ProcessProperties::SetVirtualAddressableBits(uint32_t bits) {
|
||||
}
|
||||
void ProcessProperties::SetPythonOSPluginPath(const FileSpec &file) {
|
||||
const uint32_t idx = ePropertyPythonOSPluginPath;
|
||||
m_collection_sp->SetPropertyAtIndexAsFileSpec(idx, file);
|
||||
SetPropertyAtIndex(idx, file);
|
||||
}
|
||||
|
||||
bool ProcessProperties::GetIgnoreBreakpointsInExpressions() const {
|
||||
|
||||
Reference in New Issue
Block a user