mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
Revert "Extract construction of DataBufferLLVM into FileSystem"
It broke the lldb sanitizer bots. llvm-svn: 346694
This commit is contained in:
@@ -442,7 +442,7 @@ void SourceManager::File::CommonInitializer(const FileSpec &file_spec,
|
||||
}
|
||||
|
||||
if (m_mod_time != llvm::sys::TimePoint<>())
|
||||
m_data_sp = FileSystem::Instance().CreateDataBuffer(m_file_spec);
|
||||
m_data_sp = DataBufferLLVM::CreateFromPath(m_file_spec.GetPath());
|
||||
}
|
||||
|
||||
uint32_t SourceManager::File::GetLineOffset(uint32_t line) {
|
||||
@@ -520,7 +520,7 @@ void SourceManager::File::UpdateIfNeeded() {
|
||||
if (curr_mod_time != llvm::sys::TimePoint<>() &&
|
||||
m_mod_time != curr_mod_time) {
|
||||
m_mod_time = curr_mod_time;
|
||||
m_data_sp = FileSystem::Instance().CreateDataBuffer(m_file_spec);
|
||||
m_data_sp = DataBufferLLVM::CreateFromPath(m_file_spec.GetPath());
|
||||
m_offsets.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user