summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/FileSpec.cpp
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-05-29 19:52:37 +0000
committerChaoren Lin <chaorenl@google.com>2015-05-29 19:52:37 +0000
commit44145d79ccc10520652a098d3c426a2c21821c87 (patch)
tree48e45d84269316f4ab0e30911b0515f11e9fe660 /lldb/source/Host/common/FileSpec.cpp
parentd3173f34e8546a96b8d0df0d9de133f88f10c127 (diff)
downloadbcm5719-llvm-44145d79ccc10520652a098d3c426a2c21821c87.tar.gz
bcm5719-llvm-44145d79ccc10520652a098d3c426a2c21821c87.zip
Working directory FileSpec should use remote path syntax to display correctly.
Summary: Depends on D9728. Reviewers: ovyalov, zturner, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9806 llvm-svn: 238605
Diffstat (limited to 'lldb/source/Host/common/FileSpec.cpp')
-rw-r--r--lldb/source/Host/common/FileSpec.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp
index 65d6543c86e..0e8f71acb37 100644
--- a/lldb/source/Host/common/FileSpec.cpp
+++ b/lldb/source/Host/common/FileSpec.cpp
@@ -345,11 +345,26 @@ FileSpec::SetFile (const char *pathname, bool resolve, PathSyntax syntax)
}
void
+FileSpec::SetFile(const char *pathname, bool resolve, ArchSpec arch)
+{
+ return SetFile(pathname, resolve,
+ arch.GetTriple().isOSWindows()
+ ? ePathSyntaxWindows
+ : ePathSyntaxPosix);
+}
+
+void
FileSpec::SetFile(const std::string &pathname, bool resolve, PathSyntax syntax)
{
return SetFile(pathname.c_str(), resolve, syntax);
}
+void
+FileSpec::SetFile(const std::string &pathname, bool resolve, ArchSpec arch)
+{
+ return SetFile(pathname.c_str(), resolve, arch);
+}
+
//----------------------------------------------------------------------
// Convert to pointer operator. This allows code to check any FileSpec
// objects to see if they contain anything valid using code such as:
OpenPOWER on IntegriCloud