libcc1: avoid extra string copies
commit96deddca2e535d09db1d244a96a1efc20e24b673
authorTom Tromey <tom@tromey.com>
Tue, 4 May 2021 21:26:58 +0000 (4 15:26 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 5 May 2021 06:08:34 +0000 (5 00:08 -0600)
tree2ea1b227fef5bbc57dd4638f7b5f01b02ae63751
parent8fdffa48c57f13b90556bc179150d24efdeeeef5
libcc1: avoid extra string copies

PR c/94669 points out that a couple of spots in libcc1 take a
std::string where a reference would do.  This changes these spots to
take a const char *, to reduce the number of copies.

libcc1

PR c/94669
* compiler.hh (compiler_driver_filename): Take const char *.
(compiler_triplet_regexp): Likewise.
libcc1/compiler.hh