Mercurial > projects > ldc
comparison gen/irstate.cpp @ 108:288fe1029e1f trunk
[svn r112] Fixed 'case 1,2,3:' style case statements.
Fixed a bunch of bugs with return/break/continue in loops.
Fixed support for the DMDFE hidden implicit return value variable. This can be needed for some foreach statements where the loop body is converted to a nested delegate, but also possibly returns from the function.
Added std.math to phobos.
Added AA runtime support code, done ground work for implementing AAs.
Several other bugfixes.
author | lindquist |
---|---|
date | Tue, 20 Nov 2007 05:29:20 +0100 |
parents | 855adfdb8d38 |
children | 27b9f749d9fe |
comparison
equal
deleted
inserted
replaced
107:3efbcc81ba45 | 108:288fe1029e1f |
---|---|
80 assert(!scopes.empty()); | 80 assert(!scopes.empty()); |
81 return scopes.back(); | 81 return scopes.back(); |
82 } | 82 } |
83 | 83 |
84 llvm::BasicBlock* IRState::scopebb() | 84 llvm::BasicBlock* IRState::scopebb() |
85 { | |
86 return scopebegin(); | |
87 } | |
88 llvm::BasicBlock* IRState::scopebegin() | |
89 { | 85 { |
90 IRScope& s = scope(); | 86 IRScope& s = scope(); |
91 assert(s.begin); | 87 assert(s.begin); |
92 return s.begin; | 88 return s.begin; |
93 } | 89 } |