Mercurial > projects > ldc
diff gen/irstate.cpp @ 334:20446d22f832 trunk
[svn r355] Get rid of IRState::exps and topexp.
author | ChristianK |
---|---|
date | Sat, 12 Jul 2008 15:43:13 +0200 |
parents | 0d52412d5b1a |
children | 017ca8645a1f |
line wrap: on
line diff
--- a/gen/irstate.cpp Sat Jul 12 09:23:14 2008 +0200 +++ b/gen/irstate.cpp Sat Jul 12 15:43:13 2008 +0200 @@ -95,11 +95,6 @@ return structs.back(); } -IRExp* IRState::topexp() -{ - return exps.empty() ? NULL : &exps.back(); -} - IRScope& IRState::scope() { assert(!scopes.empty()); @@ -173,18 +168,3 @@ assert(b.GetInsertBlock() != NULL); return &b; } - -////////////////////////////////////////////////////////////////////////////////////////// - -IRExp::IRExp() -{ - e1 = e2 = NULL; - v = NULL; -} - -IRExp::IRExp(Expression* l, Expression* r, DValue* val) -{ - e1 = l; - e2 = r; - v = val; -}