Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 1207:83d3b25c2213
Isolate all knowledge of what a function's nested context looks like in a
single place. No functional change.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 12 Apr 2009 13:08:24 +0200 |
parents | 8baf611f0009 |
children | 9014d7f0433f |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Sun Apr 12 12:52:01 2009 +0200 +++ b/gen/llvmhelpers.h Sun Apr 12 13:08:24 2009 +0200 @@ -2,7 +2,10 @@ #define LDC_GEN_LLVMHELPERS_H #include "gen/llvm.h" +#include "gen/dvalue.h" + #include "statement.h" +#include "mtype.h" // this is used for tracking try-finally, synchronized and volatile scopes struct EnclosingHandler @@ -64,15 +67,6 @@ /// Leaves a monitor lock. void DtoLeaveMonitor(LLValue* v); -// nested variable and context helpers - -/// Gets the context value for a call to a nested function or newing a nested -/// class with arbitrary nesting. -LLValue* DtoNestedContext(Loc loc, Dsymbol* sym); - -/// Gets the DValue of a nested variable with arbitrary nesting. -DValue* DtoNestedVariable(Loc loc, Type* astype, VarDeclaration* vd); - // basic operations void DtoAssign(Loc& loc, DValue* lhs, DValue* rhs);