]> git.ipfire.org Git - thirdparty/gcc.git/commit
libcc1: avoid a call to c_str
authorTom Tromey <tom@tromey.com>
Tue, 4 May 2021 21:26:58 +0000 (15:26 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 5 May 2021 06:08:52 +0000 (00:08 -0600)
commit61d48b1e2b5bae1e0e5e48af296facd61617139c
tree7bae3f163d378f0bbfa8a746be573ee60f35044b
parent96deddca2e535d09db1d244a96a1efc20e24b673
libcc1: avoid a call to c_str

This is a trivial change to libcc1 to avoid an explicit call to c_str.
Passing by const reference is slightly less wordy.

libcc1

* compiler.cc (make_regexp): Take const std::string.
(cc1_plugin::compiler_triplet_regexp::find): Update.
libcc1/compiler.cc