mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Finish bringing file_type to the llvm style (other than its name).
I assume that the name is file_type because it is the name of a c++11 type that we will use once we convert, but at least our current implementation can look like llvm code. Thanks to David Blakie for the push. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ffcc42764e
commit
86b8fac58a
@ -49,10 +49,9 @@ namespace llvm {
|
|||||||
namespace sys {
|
namespace sys {
|
||||||
namespace fs {
|
namespace fs {
|
||||||
|
|
||||||
/// file_type - An "enum class" enumeration for the file system's view of the
|
/// An "enum class" enumeration for the file system's view of the type.
|
||||||
/// type.
|
|
||||||
struct file_type {
|
struct file_type {
|
||||||
enum _ {
|
enum Impl {
|
||||||
status_error,
|
status_error,
|
||||||
file_not_found,
|
file_not_found,
|
||||||
regular_file,
|
regular_file,
|
||||||
@ -65,11 +64,11 @@ struct file_type {
|
|||||||
type_unknown
|
type_unknown
|
||||||
};
|
};
|
||||||
|
|
||||||
file_type(_ v) : v_(v) {}
|
file_type(Impl V) : V(V) {}
|
||||||
operator _() const {return v_;}
|
operator Impl() const { return V; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
_ v_;
|
Impl V;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// space_info - Self explanatory.
|
/// space_info - Self explanatory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user