Commit 33d0bea4 by Ian Lance Taylor

re PR go/68141 (go/gofrontend/import-archive.cc: 2 * poor choice of function parameter type ?)

	PR go/68141
    compiler: Use references in Archive_iterator comparison functions.
    
    Fixes minor performance problem pointed out in
    https://gcc.gnu.org/PR68141 .

    Reviewed-on: https://go-review.googlesource.com/17153

From-SVN: r230689
parent 4944c779
128d5b14b8ab967cb61c01a9b2c596bda7d04c63 f79db38cf3484b63f7807abef05eecb23e9d0806
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -468,11 +468,11 @@ class Archive_iterator ...@@ -468,11 +468,11 @@ class Archive_iterator
} }
bool bool
operator==(const Archive_iterator p) const operator==(const Archive_iterator& p) const
{ return this->off_ == p->off; } { return this->off_ == p->off; }
bool bool
operator!=(const Archive_iterator p) const operator!=(const Archive_iterator& p) const
{ return this->off_ != p->off; } { return this->off_ != p->off; }
private: private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment