libcc1 base API: bump set_arguments; add set_driver_filename, set_triplet_regexp
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 31 Jan 2017 01:01:09 +0000 (01:01 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 31 Jan 2017 01:01:09 +0000 (01:01 +0000)
commit5d1b2443237a407785f84be09909f93abdcfec48
tree2ecd98d407dc9ae43d7a9cbc9f5b44d9cca8106e
parent3b5c10724d7a0c29ae613bee7a0822131b06b5a8
libcc1 base API: bump set_arguments; add set_driver_filename, set_triplet_regexp

for  include/ChangeLog

* gcc-interface.h (enum gcc_base_api_version): Update comment
for GCC_FE_VERSION_1.
(struct gcc_base_vtable): Rename set_arguments to
set_arguments_v0.  Add set_arguments, set_triplet_regexp and
set_driver_filename.

for  libcc1/ChangeLog

* libcc1.cc (libcc1): Add class compiler with field compilerp,
class compiler_triplet_regexp and class
compiler_driver_filename.
(libcc1::libcc1): Initialize compilerp.
(libcc1::~libcc1): Delete compilerp.
(libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
(libcc1::compiler_driver_filename::find): New methods.
(libcc1_set_arguments): Remove parameter triplet_regexp.
(libcc1_set_triplet_regexp, libcc1_set_driver_filename)
(libcc1_set_arguments_v0): New functions.
(vtable): Use libcc1_set_arguments_v0, add
libcc1_set_arguments, libcc1_set_triplet_regexp and
libcc1_set_driver_filename.

From-SVN: r245049
include/ChangeLog
include/gcc-interface.h
libcc1/ChangeLog
libcc1/libcc1.cc