diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-04 00:32:40 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-04 00:32:40 +0000 |
commit | 470ae13be812132097cf4c17a189c47def5c19a1 (patch) | |
tree | 9108ee9f6558509578add66c44202e29237cfac6 /include/llvm/Support/FileSystem.h | |
parent | da3aaffcbb202ac492e7643fc0b191eca1931ab3 (diff) | |
download | external_llvm-470ae13be812132097cf4c17a189c47def5c19a1.tar.gz external_llvm-470ae13be812132097cf4c17a189c47def5c19a1.tar.bz2 external_llvm-470ae13be812132097cf4c17a189c47def5c19a1.zip |
Support/FileSystem: Add status implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 46bb3d68ba..fbf1e0d0a8 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -91,11 +91,13 @@ struct space_info { class file_status { // implementation defined status field. + file_type Type; public: - explicit file_status(file_type v=file_type::status_error); + explicit file_status(file_type v=file_type::status_error) + : Type(v) {} - file_type type() const; - void type(file_type v); + file_type type() const { return Type; } + void type(file_type v) { Type = v; } }; /// @} |