[Lldb-commits] [lldb] r346449 - Update FileSpec constructor signature
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 8 15:21:00 PST 2018
Author: jdevlieghere
Date: Thu Nov 8 15:21:00 2018
New Revision: 346449
URL: http://llvm.org/viewvc/llvm-project?rev=346449&view=rev
Log:
Update FileSpec constructor signature
Modified:
lldb/trunk/source/Host/android/HostInfoAndroid.cpp
Modified: lldb/trunk/source/Host/android/HostInfoAndroid.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/android/HostInfoAndroid.cpp?rev=346449&r1=346448&r2=346449&view=diff
==============================================================================
--- lldb/trunk/source/Host/android/HostInfoAndroid.cpp (original)
+++ lldb/trunk/source/Host/android/HostInfoAndroid.cpp Thu Nov 8 15:21:00 2018
@@ -40,8 +40,11 @@ FileSpec HostInfoAndroid::ResolveLibrary
static const char *const default_lib64_path[] = {"/vendor/lib64",
"/system/lib64", nullptr};
- if (module_path.empty() || module_path[0] == '/')
- return FileSpec(module_path.c_str(), true);
+ if (module_path.empty() || module_path[0] == '/') {
+ FileSpec file_spec(module_path.c_str());
+ FileSystem::Instance().Resolve(file_spec);
+ return file_spec;
+ }
SmallVector<StringRef, 4> ld_paths;
More information about the lldb-commits
mailing list