add an accessor.
authorChris Lattner <sabre@nondot.org>
Tue, 1 Apr 2008 03:20:31 +0000 (03:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Apr 2008 03:20:31 +0000 (03:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49023 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/System/Path.h

index c2a1bbc7c8cf9dc750ba57a1fdd6a02a4d113e1a..303235db3ef27919e372570a3d568fba1f182456 100644 (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