diff options
Diffstat (limited to 'gcc/go/go-location.h')
-rw-r--r-- | gcc/go/go-location.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/go/go-location.h b/gcc/go/go-location.h index f2731d9..90258ea 100644 --- a/gcc/go/go-location.h +++ b/gcc/go/go-location.h @@ -26,10 +26,6 @@ class Location gcc_location() const { return this->gcc_loc_; } - // Temporary hack till error_at and warning_at can deal with a Location. - operator source_location() const - { return this->gcc_loc_; } - private: source_location gcc_loc_; }; @@ -42,4 +38,10 @@ operator<(Location loca, Location locb) return loca.gcc_location() < locb.gcc_location(); } +inline bool +operator==(Location loca, Location locb) +{ + return loca.gcc_location() == locb.gcc_location(); +} + #endif // !defined(GO_LOCATION_H) |