Mercurial > projects > ldc
comparison dmd/template.c @ 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 | 39519a1ff603 |
children | 780530d1cad3 |
comparison
equal
deleted
inserted
replaced
945:03d7c4aac654 | 946:1714836f2c0b |
---|---|
2980 } | 2980 } |
2981 semanticdone = 1; | 2981 semanticdone = 1; |
2982 | 2982 |
2983 // get the enclosing template instance from the scope tinst | 2983 // get the enclosing template instance from the scope tinst |
2984 tinst = sc->tinst; | 2984 tinst = sc->tinst; |
2985 tmodule = sc->module; | 2985 |
2986 // get the module of the outermost enclosing instantiation | |
2987 if (tinst) | |
2988 tmodule = tinst->tmodule; | |
2989 else | |
2990 tmodule = sc->module; | |
2986 | 2991 |
2987 #if LOG | 2992 #if LOG |
2988 printf("\tdo semantic\n"); | 2993 printf("\tdo semantic\n"); |
2989 #endif | 2994 #endif |
2990 if (havetempdecl) | 2995 if (havetempdecl) |