From 86758c718870f701bc69c1ca05495305ed1c5b85 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 3 Dec 2013 18:51:59 +0000 Subject: Import lldb as of SVN r196259 (git 3be86e5) (A number of files not required for the FreeBSD build have been removed.) Sponsored by: DARPA, AFRL --- source/API/SBFileSpec.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source/API/SBFileSpec.cpp') diff --git a/source/API/SBFileSpec.cpp b/source/API/SBFileSpec.cpp index fc207d071dbc..4fd2866c9b05 100644 --- a/source/API/SBFileSpec.cpp +++ b/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 { -- cgit v1.3