diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-10 19:08:21 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-10 19:08:21 +0000 |
| commit | 9a54da08e001dedd16e96def9c9ea1b413d838db (patch) | |
| tree | b228e35ea3d535b0048172a914a18f2dc8c42b12 | |
| parent | 3d5764091d69f287dafd90a95a901a2829ea9d10 (diff) | |
| download | bcm5719-llvm-9a54da08e001dedd16e96def9c9ea1b413d838db.tar.gz bcm5719-llvm-9a54da08e001dedd16e96def9c9ea1b413d838db.zip | |
Use an enum class now that they are available.
llvm-svn: 210566
| -rw-r--r-- | llvm/include/llvm/Support/FileSystem.h | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h index a9ed8029219..271cec3a09f 100644 --- a/llvm/include/llvm/Support/FileSystem.h +++ b/llvm/include/llvm/Support/FileSystem.h @@ -49,26 +49,18 @@ namespace llvm { namespace sys { namespace fs { -/// An "enum class" enumeration for the file system's view of the type. -struct file_type { - enum Impl { - status_error, - file_not_found, - regular_file, - directory_file, - symlink_file, - block_file, - character_file, - fifo_file, - socket_file, - type_unknown - }; - - file_type(Impl V) : V(V) {} - operator Impl() const { return V; } - -private: - Impl V; +/// An enumeration for the file system's view of the type. +enum class file_type { + status_error, + file_not_found, + regular_file, + directory_file, + symlink_file, + block_file, + character_file, + fifo_file, + socket_file, + type_unknown }; /// space_info - Self explanatory. |

