diff options
author | Tom Tromey <tom@tromey.com> | 2021-05-04 15:26:58 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-05-05 00:06:16 -0600 |
commit | e1f5252e4d4747e912e33bdbb5aef80055460aa2 (patch) | |
tree | 66e5d09e9ff5f74439f665e85a378040adfb157c /libcc1/libcc1.cc | |
parent | 25d1a6ecdc443f19d63ab4dfc449417347ca7be0 (diff) | |
download | gcc-e1f5252e4d4747e912e33bdbb5aef80055460aa2.zip gcc-e1f5252e4d4747e912e33bdbb5aef80055460aa2.tar.gz gcc-e1f5252e4d4747e912e33bdbb5aef80055460aa2.tar.bz2 |
libcc1: use "override"
This changes libcc1 to use "override" where appropriate.
libcc1
* libcp1.cc (class compiler_triplet_regexp)
(class compiler_driver_filename, class libcp1_connection): Use
"override".
* libcc1.cc (class compiler_triplet_regexp)
(class compiler_driver_filename, class libcc1_connection): Use
"override".
Diffstat (limited to 'libcc1/libcc1.cc')
-rw-r--r-- | libcc1/libcc1.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcc1/libcc1.cc b/libcc1/libcc1.cc index 68d366a..2c08dab 100644 --- a/libcc1/libcc1.cc +++ b/libcc1/libcc1.cc @@ -93,7 +93,7 @@ struct libcc1 : public gcc_c_context private: std::string triplet_regexp_; public: - virtual char *find (std::string &compiler) const; + char *find (std::string &compiler) const override; compiler_triplet_regexp (libcc1 *self, std::string triplet_regexp) : compiler (self), triplet_regexp_ (triplet_regexp) { @@ -109,7 +109,7 @@ struct libcc1 : public gcc_c_context private: std::string driver_filename_; public: - virtual char *find (std::string &compiler) const; + char *find (std::string &compiler) const override; compiler_driver_filename (libcc1 *self, std::string driver_filename) : compiler (self), driver_filename_ (driver_filename) { @@ -132,7 +132,7 @@ public: { } - virtual void print (const char *buf) + void print (const char *buf) override { back_ptr->print (buf); } |