projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdbd2d7
)
add an accessor.
author
Chris Lattner
<sabre@nondot.org>
Tue, 1 Apr 2008 03:20:31 +0000
(
03:20
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/System/Path.h
b/include/llvm/System/Path.h
index c2a1bbc7c8cf9dc750ba57a1fdd6a02a4d113e1a..303235db3ef27919e372570a3d568fba1f182456 100644
(file)
--- 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