From beab8baab8a7f727f5ba65ecbd7e11decea18112 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 4 Oct 2009 09:00:19 +0200 Subject: Add --suppress-inline option --- cli/context.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cli/context.cxx') diff --git a/cli/context.cxx b/cli/context.cxx index bc7ff0f..1af10e8 100644 --- a/cli/context.cxx +++ b/cli/context.cxx @@ -10,17 +10,15 @@ using namespace std; context:: -context (std::ostream& os_, - semantics::cli_unit& unit_) +context (ostream& os_, semantics::cli_unit& unit_, options_type const& ops) : data_ (new (shared) data), os (os_), unit (unit_), + options (ops), inl (data_->inl_), reserved_name_map (data_->reserved_name_map_) { - //@@ --generate-inline - // - if (false) + if (!options.suppress_inline ()) inl = "inline "; } @@ -29,6 +27,7 @@ context (context& c) : data_ (c.data_), os (c.os), unit (c.unit), + options (c.options), inl (c.inl), reserved_name_map (c.reserved_name_map) { -- cgit v1.1