This reverts commit
2bea2d7b070dc5df723ce2b92dbc654b8bb1847e.
It introduced following failures on buildbot lldb-aarch64-windows:
lldb-api :: functionalities/process_save_core/TestProcessSaveCore.py
lldb-api :: python_api/symbol-context/TestSymbolContext.py
Differential Revision: https://reviews.llvm.org/D149625
const char *SBFileSpec::GetDirectory() const {
LLDB_INSTRUMENT_VA(this);
- return m_opaque_up->GetDirectory().GetCString();
+ FileSpec directory{*m_opaque_up};
+ directory.ClearFilename();
+ return directory.GetPathAsConstString().GetCString();
}
void SBFileSpec::SetFilename(const char *filename) {