summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-03-19 13:18:42 +0000
committeremaste <emaste@FreeBSD.org>2014-03-19 13:18:42 +0000
commitde2662087f68970c151b26a2997516c216039b26 (patch)
tree6a672eef9249553426e36975397cc5973493e038 /contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp
parent7327a493ea46f46df221ed1a16d03d1981a284e0 (diff)
downloadFreeBSD-src-de2662087f68970c151b26a2997516c216039b26.zip
FreeBSD-src-de2662087f68970c151b26a2997516c216039b26.tar.gz
MFC r258884: Update LLDB to upstream r196259 snapshot
Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp b/contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp
index fc207d0..4fd2866 100644
--- a/contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp
+++ b/contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp
@@ -121,6 +121,24 @@ SBFileSpec::GetDirectory() const
return s;
}
+void
+SBFileSpec::SetFilename(const char *filename)
+{
+ if (filename && filename[0])
+ m_opaque_ap->GetFilename().SetCString(filename);
+ else
+ m_opaque_ap->GetFilename().Clear();
+}
+
+void
+SBFileSpec::SetDirectory(const char *directory)
+{
+ if (directory && directory[0])
+ m_opaque_ap->GetDirectory().SetCString(directory);
+ else
+ m_opaque_ap->GetDirectory().Clear();
+}
+
uint32_t
SBFileSpec::GetPath (char *dst_path, size_t dst_len) const
{
OpenPOWER on IntegriCloud