diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2013-12-03 19:23:54 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2013-12-03 19:23:54 +0000 | 
| commit | b952cd584f86ebc71c0a9c628a0d66e99afb38ea (patch) | |
| tree | ba627d06612b80ba6e3256d311edf689335b6603 /contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp | |
| parent | 05337b80ee6ac6fc4b7d2449ab0411a9d0d3c808 (diff) | |
| parent | 86758c718870f701bc69c1ca05495305ed1c5b85 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp')
| -rw-r--r-- | contrib/llvm/tools/lldb/source/API/SBFileSpec.cpp | 18 | 
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 fc207d071dbc..4fd2866c9b05 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  {  | 
