summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-28 23:36:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-28 23:36:39 +0000
commitcbf1a809c35e844f9bd35f144b8be03e28eff79b (patch)
tree501050ba1be199b7a8ce79868247f48b1d6debf9 /llvm
parentc80ff7d4b0d62e4547e6d4630f028e5ccf9528e2 (diff)
downloadbcm5719-llvm-cbf1a809c35e844f9bd35f144b8be03e28eff79b.tar.gz
bcm5719-llvm-cbf1a809c35e844f9bd35f144b8be03e28eff79b.zip
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. llvm-svn: 200354
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/FileSystem.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h
index a87011c9bd9..032b5bef6a8 100644
--- a/llvm/include/llvm/Support/FileSystem.h
+++ b/llvm/include/llvm/Support/FileSystem.h
@@ -49,10 +49,9 @@ namespace llvm {
namespace sys {
namespace fs {
-/// file_type - An "enum class" enumeration for the file system's view of the
-/// type.
+/// An "enum class" enumeration for the file system's view of the type.
struct file_type {
- enum _ {
+ enum Impl {
status_error,
file_not_found,
regular_file,
@@ -65,11 +64,11 @@ struct file_type {
type_unknown
};
- file_type(_ v) : v_(v) {}
- operator _() const {return v_;}
+ file_type(Impl V) : V(V) {}
+ operator Impl() const { return V; }
private:
- _ v_;
+ Impl V;
};
/// space_info - Self explanatory.
OpenPOWER on IntegriCloud