summary refs log tree commit diff stats
path: root/nim/semdata.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/semdata.pas')
-rw-r--r--nim/semdata.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/nim/semdata.pas b/nim/semdata.pas
index f920fae2a..9ffd41eac 100644
--- a/nim/semdata.pas
+++ b/nim/semdata.pas
@@ -43,6 +43,7 @@ type
   PContext = ^TContext;
   TContext = object(TPassContext) // a context represents a module
     module: PSym;            // the module sym belonging to the context
+    filename: string;        // the module's filename
     tab: TSymTab;            // each module has its own symbol table
     AmbigiousSymbols: TIntSet; // contains ids of all ambigious symbols (cannot
                                // store this info in the syms themselves!)
@@ -160,6 +161,7 @@ begin
   result.module := module;
   result.generics := newNode(nkStmtList);
 {@emit result.converters := @[];}
+  result.filename := nimfile;
 end;
 
 procedure addConverter(c: PContext; conv: PSym);