From 4fd6bca4e75870958ea61b94e0a1e60e78cd91bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Jan 2012 17:27:40 +0200 Subject: Add support for defining composite value type as class template instantiations --- odb/parser.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'odb/parser.cxx') diff --git a/odb/parser.cxx b/odb/parser.cxx index a5f17c3..474aa3d 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -866,7 +866,6 @@ emit_type_decl (tree decl) tree decl_name (DECL_NAME (decl)); char const* name (IDENTIFIER_POINTER (decl_name)); - if (DECL_ARTIFICIAL (decl) && (tc == RECORD_TYPE || tc == UNION_TYPE || tc == ENUMERAL_TYPE)) { @@ -1967,13 +1966,7 @@ add_pragma (node& n, pragma const& p) if (trace) ts << "\t\t pragma " << p.pragma_name << endl; - // Convert '_' to '-' in the pragma name so we get foo-bar instead - // of foo_bar (that's the convention used). - // - string k (p.context_name); - for (size_t i (0); i < k.size (); ++i) - if (k[i] == '_') - k[i] = '-'; + string const& k (p.context_name); if (p.add == 0) { -- cgit v1.1