aboutsummaryrefslogtreecommitdiff
path: root/odb/plugin.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-15 13:45:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-15 13:45:35 +0200
commit61acf05c698a8b611c5ccf6aed8d3e654d5acf8e (patch)
tree2d493a1faf9fc4d3127c16c63845b92aeac5c8b8 /odb/plugin.cxx
parentde2acaa079cbf6bcb1db8fecd956789360d9dd5c (diff)
Use passed file name instead of looking in line map
Diffstat (limited to 'odb/plugin.cxx')
-rw-r--r--odb/plugin.cxx25
1 files changed, 1 insertions, 24 deletions
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 != "<built-in>" &&
- f != "<command-line>" &&
- f != "<stdin>")
- {
- file = path (f);
- break;
- }
- }
- }
-
- //
- //
+ path file (options_->svc_file ());
parser p (*options_, loc_pragmas_, decl_pragmas_);
auto_ptr<unit> u (p.parse (global_namespace, file));