From d3e40f931e65fcd86801630edd694e1a9a210ac4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Jun 2017 13:20:00 +0200 Subject: Store module information in depdb --- build2/cc/types.hxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'build2/cc/types.hxx') 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; + 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. -- cgit v1.1