summaryrefslogtreecommitdiff
path: root/lldb/source/Core/SourceManager.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-11-12 19:08:19 +0000
committerDavide Italiano <davide@freebsd.org>2018-11-12 19:08:19 +0000
commit9e1d6f97dfa36a8d221ed99d00da34ecd41775f1 (patch)
tree6196ade72d7a1108aa4b59b2954b033902d828f9 /lldb/source/Core/SourceManager.cpp
parentf822bd0cc4ad9d01893a423177495d122ee769e2 (diff)
Revert "Extract construction of DataBufferLLVM into FileSystem"
It broke the lldb sanitizer bots.
Diffstat (limited to 'lldb/source/Core/SourceManager.cpp')
-rw-r--r--lldb/source/Core/SourceManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/SourceManager.cpp b/lldb/source/Core/SourceManager.cpp
index 16cc1b805b5..cda23f5645e 100644
--- a/lldb/source/Core/SourceManager.cpp
+++ b/lldb/source/Core/SourceManager.cpp
@@ -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();
}
}