summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux
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
commit9a89d93d62525518faa518766b6fae4d14b26140 (patch)
treea65e0babe3bc9b0b1b0861aa2116784000b7a7c2 /lldb/source/Host/linux
parent163107885339985f576afef02c76978d6b2a2401 (diff)
downloadbcm5719-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/Host/linux')
-rw-r--r--lldb/source/Host/linux/Host.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp
index bd596f8cbfe..1008706bd13 100644
--- a/lldb/source/Host/linux/Host.cpp
+++ b/lldb/source/Host/linux/Host.cpp
@@ -28,6 +28,7 @@
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/linux/Support.h"
+#include "lldb/Utility/DataBufferLLVM.h"
#include "lldb/Utility/DataExtractor.h"
using namespace lldb;
@@ -121,7 +122,7 @@ static bool IsDirNumeric(const char *dname) {
static ArchSpec GetELFProcessCPUType(llvm::StringRef exe_path) {
Log *log = GetLogIfAllCategoriesSet(LIBLLDB_LOG_HOST);
- auto buffer_sp = FileSystem::Instance().CreateDataBuffer(exe_path, 0x20, 0);
+ auto buffer_sp = DataBufferLLVM::CreateSliceFromPath(exe_path, 0x20, 0);
if (!buffer_sp)
return ArchSpec();
OpenPOWER on IntegriCloud