diff options
Diffstat (limited to 'build2/cc/types.hxx')
-rw-r--r-- | build2/cc/types.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/build2/cc/types.hxx b/build2/cc/types.hxx index 17f6b96..3448827 100644 --- a/build2/cc/types.hxx +++ b/build2/cc/types.hxx @@ -14,7 +14,7 @@ namespace build2 { namespace cc { - // Translation unit information (currently modules). + // Translation unit information. // struct module_import { @@ -25,11 +25,16 @@ namespace build2 using module_imports = vector<module_import>; + struct module_info + { + string name; // Not empty if a module unit. + bool iface; // True if a module interface unit. + module_imports imports; // Imported modules. + }; + struct translation_unit { - string module_name; // Not empty if a module unit. - bool module_interface; // True if a module interface unit. - cc::module_imports module_imports; // Imported modules. + module_info mod; }; // Compiler language. |