diff options
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; } }; /// @} |