mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 09:32:20 +00:00
Use an enum class now that they are available.
llvm-svn: 210566
This commit is contained in:
parent
3d5764091d
commit
9a54da08e0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user