diff dmd/dsymbol.h @ 946:1714836f2c0b

Mostly rewrite debug info generation in terms of llvm/Analysis/DebugInfo.h. Add getCompilationModule to Dsymbol and fix template compile unit decision code. Runtime compiles with -g again.
author Christian Kamm <kamm incasoftware de>
date Sun, 08 Feb 2009 16:50:22 +0100
parents 29c0d1194033
children 1860414bf3b7
line wrap: on
line diff
--- a/dmd/dsymbol.h	Sun Feb 08 05:26:54 2009 +0100
+++ b/dmd/dsymbol.h	Sun Feb 08 16:50:22 2009 +0100
@@ -119,7 +119,8 @@
     void error(Loc loc, const char *format, ...);
     void error(const char *format, ...);
     void checkDeprecated(Loc loc, Scope *sc);
-    Module *getModule();
+    Module *getModule();        // module where declared
+    Module *getCompilationModule(); // possibly different for templates
     Dsymbol *pastMixin();
     Dsymbol *toParent();
     Dsymbol *toParent2();