aboutsummaryrefslogtreecommitdiff
path: root/libcc1/libcc1.cc
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-04 15:26:58 -0600
committerTom Tromey <tom@tromey.com>2021-05-05 00:06:16 -0600
commit25d1a6ecdc443f19d63ab4dfc449417347ca7be0 (patch)
treed7d7e3693096c36217f47ba8f9b0ebf8b0123203 /libcc1/libcc1.cc
parent523ca6403c68d580043af01485f2a8a8ce3a56d1 (diff)
downloadgcc-25d1a6ecdc443f19d63ab4dfc449417347ca7be0.zip
gcc-25d1a6ecdc443f19d63ab4dfc449417347ca7be0.tar.gz
gcc-25d1a6ecdc443f19d63ab4dfc449417347ca7be0.tar.bz2
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.
Diffstat (limited to 'libcc1/libcc1.cc')
-rw-r--r--libcc1/libcc1.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcc1/libcc1.cc b/libcc1/libcc1.cc
index e4c200c..68d366a 100644
--- a/libcc1/libcc1.cc
+++ b/libcc1/libcc1.cc
@@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see
#include <sys/stat.h>
#include <stdlib.h>
#include <sstream>
-#include "marshall-c.hh"
+#include "marshall.hh"
#include "rpc.hh"
#include "connection.hh"
#include "names.hh"
@@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see
#include "findcomp.hh"
#include "compiler-name.hh"
#include "intl.h"
+#include "gcc-c-interface.h"
struct libcc1;