From 61acf05c698a8b611c5ccf6aed8d3e654d5acf8e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Nov 2010 13:45:35 +0200 Subject: Use passed file name instead of looking in line map --- odb/plugin.cxx | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'odb/plugin.cxx') diff --git a/odb/plugin.cxx b/odb/plugin.cxx index d5134d9..95bcafd 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -95,30 +95,7 @@ gate_callback (void*, void*) try { - // Find the actual main file name that was specified with the - // #line directive. - // - path file; - for (size_t i (0); i < line_table->used; ++i) - { - line_map const* m (line_table->maps + i); - - if (MAIN_FILE_P (m) && m->reason == LC_RENAME) - { - string f (m->to_file); - - if (f != "" && - f != "" && - f != "") - { - file = path (f); - break; - } - } - } - - // - // + path file (options_->svc_file ()); parser p (*options_, loc_pragmas_, decl_pragmas_); auto_ptr u (p.parse (global_namespace, file)); -- cgit v1.1