From cc56e64a59db0f8aef62f0df29688cb22a1ea945 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 1 Apr 2008 03:20:31 +0000 Subject: [PATCH] add an accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49023 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Path.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index c2a1bbc7c8c..303235db3ef 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