aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Path.h3
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