summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBHostOS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBHostOS.cpp')
-rw-r--r--lldb/source/API/SBHostOS.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/API/SBHostOS.cpp b/lldb/source/API/SBHostOS.cpp
index 90b75a6ecd7..8f47eab5be6 100644
--- a/lldb/source/API/SBHostOS.cpp
+++ b/lldb/source/API/SBHostOS.cpp
@@ -17,6 +17,8 @@
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
+#include "Plugins/ExpressionParser/Clang/ClangHost.h"
+
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Path.h"
@@ -41,7 +43,12 @@ SBFileSpec SBHostOS::GetLLDBPythonPath() {
SBFileSpec SBHostOS::GetLLDBPath(lldb::PathType path_type) {
SBFileSpec sb_fspec;
FileSpec fspec;
- if (HostInfo::GetLLDBPath(path_type, fspec))
+ bool Success = true;
+ if (path_type == ePathTypeClangDir)
+ fspec = GetClangResourceDir();
+ else
+ Success = HostInfo::GetLLDBPath(path_type, fspec);
+ if (Success)
sb_fspec.SetFileSpec(fspec);
return sb_fspec;
}
OpenPOWER on IntegriCloud