summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-10 19:08:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-10 19:08:21 +0000
commit81ff9cdedbbe09f699fa8ac81a00231c7737b58f (patch)
treec014f65889d562b79564786725a5e23e8e82078a /include
parentbfd00e21b76fcbc51e005747b030af7eee7b10c5 (diff)
downloadllvm-81ff9cdedbbe09f699fa8ac81a00231c7737b58f.tar.gz
llvm-81ff9cdedbbe09f699fa8ac81a00231c7737b58f.tar.bz2
llvm-81ff9cdedbbe09f699fa8ac81a00231c7737b58f.tar.xz
Use an enum class now that they are available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/FileSystem.h32
1 files changed, 12 insertions, 20 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index a9ed802921..271cec3a09 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/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.