Index: src/location.h |
=================================================================== |
--- src/location.h (revision 3140) |
+++ src/location.h (working copy) |
@@ -35,15 +35,17 @@ |
class Location BASE_EMBEDDED { |
public: |
+ enum Type { NOWHERE, TEMP }; |
+ |
static Location Temporary() { return Location(TEMP); } |
static Location Nowhere() { return Location(NOWHERE); } |
bool is_temporary() { return type_ == TEMP; } |
bool is_nowhere() { return type_ == NOWHERE; } |
+ Type type() { return type_; } |
+ |
private: |
- enum Type { TEMP, NOWHERE }; |
- |
explicit Location(Type type) : type_(type) {} |
Type type_; |