diff options
author | Sean Callanan <scallanan@apple.com> | 2011-01-18 23:32:05 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-01-18 23:32:05 +0000 |
commit | 2c777c4afb3055ad25b59eb852ed33f421fd6d10 (patch) | |
tree | 55e933c6e81440afa5489199112194ae4f266f86 /lldb/source/Core/FileSpec.cpp | |
parent | dac7a0174eb31f3f675ea550febe3d56d8f82089 (diff) | |
download | bcm5719-llvm-2c777c4afb3055ad25b59eb852ed33f421fd6d10.tar.gz bcm5719-llvm-2c777c4afb3055ad25b59eb852ed33f421fd6d10.zip |
Updated to revision 123723 of LLVM, to bring in
support for minimal type import functionality.
llvm-svn: 123787
Diffstat (limited to 'lldb/source/Core/FileSpec.cpp')
-rw-r--r-- | lldb/source/Core/FileSpec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/FileSpec.cpp b/lldb/source/Core/FileSpec.cpp index 3650a823a29..10963fef681 100644 --- a/lldb/source/Core/FileSpec.cpp +++ b/lldb/source/Core/FileSpec.cpp @@ -499,7 +499,9 @@ FileSpec::ResolveExecutableLocation () { const std::string file_str (m_filename.AsCString()); llvm::sys::Path path = llvm::sys::Program::FindProgramByName (file_str); - llvm::StringRef dir_ref = path.getDirname(); + const std::string &path_str = path.str(); + llvm::StringRef dir_ref = llvm::sys::path::parent_path(path_str); + //llvm::StringRef dir_ref = path.getDirname(); if (! dir_ref.empty()) { // FindProgramByName returns "." if it can't find the file. |