Mercurial > projects > ldc
comparison gen/statements.cpp @ 137:ce7b81fb957f trunk
[svn r141] fixed more problems with classinfo
moved more IR state out of the AST classes
author | lindquist |
---|---|
date | Fri, 18 Jan 2008 16:42:16 +0100 |
parents | 0e28624814e8 |
children | a27941d00351 |
comparison
equal
deleted
inserted
replaced
136:0e28624814e8 | 137:ce7b81fb957f |
---|---|
128 void ExpStatement::toIR(IRState* p) | 128 void ExpStatement::toIR(IRState* p) |
129 { | 129 { |
130 Logger::println("ExpStatement::toIR(): %s", loc.toChars()); | 130 Logger::println("ExpStatement::toIR(): %s", loc.toChars()); |
131 LOG_SCOPE; | 131 LOG_SCOPE; |
132 | 132 |
133 if (global.params.llvmAnnotate) | |
134 DtoAnnotation(exp->toChars()); | |
135 | |
136 if (global.params.symdebug) | 133 if (global.params.symdebug) |
137 DtoDwarfStopPoint(loc.linnum); | 134 DtoDwarfStopPoint(loc.linnum); |
138 | 135 |
139 if (exp != 0) { | 136 if (exp) { |
137 if (global.params.llvmAnnotate) | |
138 DtoAnnotation(exp->toChars()); | |
140 elem* e = exp->toElem(p); | 139 elem* e = exp->toElem(p); |
141 delete e; | 140 delete e; |
142 } | 141 } |
143 /*elem* e = exp->toElem(p); | 142 /*elem* e = exp->toElem(p); |
144 p->buf.printf("%s", e->toChars()); | 143 p->buf.printf("%s", e->toChars()); |