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 --- unit-tests/cc/parser/driver.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unit-tests') diff --git a/unit-tests/cc/parser/driver.cxx b/unit-tests/cc/parser/driver.cxx index 5798d9f..ec346d3 100644 --- a/unit-tests/cc/parser/driver.cxx +++ b/unit-tests/cc/parser/driver.cxx @@ -45,13 +45,13 @@ namespace build2 parser p; translation_unit u (p.parse (*is, path (in))); - for (const module_import& m: u.module_imports) + for (const module_import& m: u.mod.imports) cout << (m.exported ? "export " : "") << "import " << m.name << ';' << endl; - if (!u.module_name.empty ()) - cout << (u.module_interface ? "export " : "") - << "module " << u.module_name << ';' << endl; + if (!u.mod.name.empty ()) + cout << (u.mod.iface ? "export " : "") + << "module " << u.mod.name << ';' << endl; } catch (const failed&) { -- cgit v1.1