summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-07 03:43:17 +0000
committerZachary Turner <zturner@google.com>2017-03-07 03:43:17 +0000
commit990e3cd8e25970e477840d81972290858caffd50 (patch)
tree50278a2ce428ac02066aa7611cbe42cc89b11e6e /lldb/source/Core/Module.cpp
parent06ec03c2110e1a17271699a95ba28b0a56d9e17b (diff)
downloadbcm5719-llvm-990e3cd8e25970e477840d81972290858caffd50.tar.gz
bcm5719-llvm-990e3cd8e25970e477840d81972290858caffd50.zip
Use LLVM for all stat-related functionality.
This deletes LLDB's FileType enumeration and replaces all users, and all calls to functions that check whether a file exists etc with corresponding calls to LLVM. Differential Revision: https://reviews.llvm.org/D30624 llvm-svn: 297116
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index c8afb61e37b..d2034d6518d 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -12,6 +12,7 @@
// C Includes
// C++ Includes
// Other libraries and framework includes
+#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/raw_os_ostream.h"
@@ -1439,7 +1440,7 @@ void Module::SetSymbolFileFileSpec(const FileSpec &file) {
// ("/tmp/a.out.dSYM/Contents/Resources/DWARF/a.out"). So we need to
// check this
- if (file.IsDirectory()) {
+ if (llvm::sys::fs::is_directory(file.GetPath())) {
std::string new_path(file.GetPath());
std::string old_path(obj_file->GetFileSpec().GetPath());
if (old_path.find(new_path) == 0) {
OpenPOWER on IntegriCloud