diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-11-20 23:44:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-11-20 23:44:25 +0000 |
commit | 33d0bea4a9e2d2aa4e7e204701677253ad24e0cb (patch) | |
tree | 735e36cd30e8006c88d09edf9b183020b2a278fd | |
parent | 4944c7791b76f813aaf33da27c92df8704adec06 (diff) | |
download | gcc-33d0bea4a9e2d2aa4e7e204701677253ad24e0cb.zip gcc-33d0bea4a9e2d2aa4e7e204701677253ad24e0cb.tar.gz gcc-33d0bea4a9e2d2aa4e7e204701677253ad24e0cb.tar.bz2 |
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
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/import-archive.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 1863854..3ccd3fc 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -128d5b14b8ab967cb61c01a9b2c596bda7d04c63 +f79db38cf3484b63f7807abef05eecb23e9d0806 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/import-archive.cc b/gcc/go/gofrontend/import-archive.cc index 4305755..7d7f426 100644 --- a/gcc/go/gofrontend/import-archive.cc +++ b/gcc/go/gofrontend/import-archive.cc @@ -468,11 +468,11 @@ class Archive_iterator } bool - operator==(const Archive_iterator p) const + operator==(const Archive_iterator& p) const { return this->off_ == p->off; } bool - operator!=(const Archive_iterator p) const + operator!=(const Archive_iterator& p) const { return this->off_ != p->off; } private: |