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.
Showing
- libcc1/libcc1.cc 2 additions, 1 deletionlibcc1/libcc1.cc
- libcc1/libcc1plugin.cc 2 additions, 1 deletionlibcc1/libcc1plugin.cc
- libcc1/marshall-c.hh 0 additions, 59 deletionslibcc1/marshall-c.hh
- libcc1/marshall-cp.hh 0 additions, 40 deletionslibcc1/marshall-cp.hh
- libcc1/marshall.hh 21 additions, 5 deletionslibcc1/marshall.hh
Loading
Please register or sign in to comment