mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
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
This commit is contained in:
@ -49,9 +49,8 @@ namespace llvm {
|
|||||||
namespace sys {
|
namespace sys {
|
||||||
namespace fs {
|
namespace fs {
|
||||||
|
|
||||||
/// An "enum class" enumeration for the file system's view of the type.
|
/// An enumeration for the file system's view of the type.
|
||||||
struct file_type {
|
enum class file_type {
|
||||||
enum Impl {
|
|
||||||
status_error,
|
status_error,
|
||||||
file_not_found,
|
file_not_found,
|
||||||
regular_file,
|
regular_file,
|
||||||
@ -64,13 +63,6 @@ struct file_type {
|
|||||||
type_unknown
|
type_unknown
|
||||||
};
|
};
|
||||||
|
|
||||||
file_type(Impl V) : V(V) {}
|
|
||||||
operator Impl() const { return V; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
Impl V;
|
|
||||||
};
|
|
||||||
|
|
||||||
/// space_info - Self explanatory.
|
/// space_info - Self explanatory.
|
||||||
struct space_info {
|
struct space_info {
|
||||||
uint64_t capacity;
|
uint64_t capacity;
|
||||||
|
Reference in New Issue
Block a user