add an accessor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-04-01 03:20:31 +00:00
parent bdbd2d710c
commit cc56e64a59

View File

@ -282,6 +282,9 @@ namespace sys {
/// @returns a 'C' string containing the path name.
/// @brief Returns the path as a C string.
const char *c_str() const { return path.c_str(); }
/// size - Return the length in bytes of this path name.
unsigned size() const { return path.size(); }
/// @}
/// @name Disk Accessors