]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcc1/marshall.hh
libcc1: use templates to unmarshall enums
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:06:16 +0000 (00:06 -0600)
commit25d1a6ecdc443f19d63ab4dfc449417347ca7be0
treed7d7e3693096c36217f47ba8f9b0ebf8b0123203
parent523ca6403c68d580043af01485f2a8a8ce3a56d1
libcc1: use templates to unmarshall enums

Now that C++11 can be used in GCC, libcc1 can be changed to use
templates and type traits to handle unmarshalling all kinds of enums.

libcc1

* marshall.hh (cc1_plugin::unmarshall): Use type traits.
* marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
* marshall-c.hh: Remove.
* libcc1plugin.cc: Update includes.
* libcc1.cc: Update includes.
libcc1/libcc1.cc
libcc1/libcc1plugin.cc
libcc1/marshall-c.hh [deleted file]
libcc1/marshall-cp.hh
libcc1/marshall.hh