diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-01 03:20:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-01 03:20:31 +0000 |
commit | cc56e64a59db0f8aef62f0df29688cb22a1ea945 (patch) | |
tree | 7f55c580565dd1bcb17b321dca25655b63b29dfc | |
parent | bdbd2d710c665bcdf31cbed4b44cf3f94ba746e7 (diff) |
add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49023 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/System/Path.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index c2a1bbc7c8..303235db3e 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -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 |