diff options
author | Davide Italiano <davide@freebsd.org> | 2018-11-12 19:08:19 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-11-12 19:08:19 +0000 |
commit | 9a89d93d62525518faa518766b6fae4d14b26140 (patch) | |
tree | a65e0babe3bc9b0b1b0861aa2116784000b7a7c2 /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | |
parent | 163107885339985f576afef02c76978d6b2a2401 (diff) | |
download | bcm5719-llvm-9a89d93d62525518faa518766b6fae4d14b26140.tar.gz bcm5719-llvm-9a89d93d62525518faa518766b6fae4d14b26140.zip |
Revert "Extract construction of DataBufferLLVM into FileSystem"
It broke the lldb sanitizer bots.
llvm-svn: 346694
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp index c9359df7f9c..c287d14b67f 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp @@ -30,6 +30,7 @@ #include "lldb/Target/Platform.h" #include "lldb/Target/Process.h" #include "lldb/Target/Target.h" +#include "lldb/Utility/DataBufferLLVM.h" #include "lldb/Utility/Log.h" #include "lldb/Utility/Status.h" #include "lldb/Utility/Timer.h" @@ -1166,7 +1167,7 @@ const char *PlatformDarwin::GetDeveloperDirectory() { xcode_dir_path.append("/usr/share/xcode-select/xcode_dir_path"); temp_file_spec.SetFile(xcode_dir_path, FileSpec::Style::native); auto dir_buffer = - FileSystem::Instance().CreateDataBuffer(temp_file_spec.GetPath()); + DataBufferLLVM::CreateFromPath(temp_file_spec.GetPath()); if (dir_buffer && dir_buffer->GetByteSize() > 0) { llvm::StringRef path_ref(dir_buffer->GetChars()); // Trim tailing newlines and make sure there is enough room for a null |