[FileSystem] Remove ResolveExecutableLocation() from FileSpec
This patch removes the ResolveExecutableLocation method from FileSpec and updates its uses with calls to the FileSystem. Differential revision: https://reviews.llvm.org/D53834 llvm-svn: 345853
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "lldb/API/SBFileSpec.h"
|
||||
#include "lldb/API/SBStream.h"
|
||||
#include "lldb/Host/FileSystem.h"
|
||||
#include "lldb/Host/PosixApi.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
@@ -61,7 +62,7 @@ bool SBFileSpec::Exists() const {
|
||||
}
|
||||
|
||||
bool SBFileSpec::ResolveExecutableLocation() {
|
||||
return m_opaque_ap->ResolveExecutableLocation();
|
||||
return FileSystem::Instance().ResolveExecutableLocation(*m_opaque_ap);
|
||||
}
|
||||
|
||||
int SBFileSpec::ResolvePath(const char *src_path, char *dst_path,
|
||||
|
||||
Reference in New Issue
Block a user