[llvm-commits] [llvm] r49023 - /llvm/trunk/include/llvm/System/Path.h

Chris Lattner sabre at nondot.org
Mon Mar 31 20:20:31 PDT 2008


Author: lattner
Date: Mon Mar 31 22:20:31 2008
New Revision: 49023

URL: http://llvm.org/viewvc/llvm-project?rev=49023&view=rev
Log:
add an accessor.

Modified:
    llvm/trunk/include/llvm/System/Path.h

Modified: llvm/trunk/include/llvm/System/Path.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Path.h?rev=49023&r1=49022&r2=49023&view=diff

==============================================================================
--- llvm/trunk/include/llvm/System/Path.h (original)
+++ llvm/trunk/include/llvm/System/Path.h Mon Mar 31 22:20:31 2008
@@ -282,6 +282,9 @@
       /// @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





More information about the llvm-commits mailing list