[svn r355] Get rid of IRState::exps and topexp.

This commit is contained in:
Christian Kamm 2008-07-12 15:43:13 +02:00
parent f0d8b9e153
commit 717d52d4f0
8 changed files with 39 additions and 214 deletions

View file

@ -95,11 +95,6 @@ IrStruct* IRState::topstruct()
return structs.back();
}
IRExp* IRState::topexp()
{
return exps.empty() ? NULL : &exps.back();
}
IRScope& IRState::scope()
{
assert(!scopes.empty());
@ -173,18 +168,3 @@ IRBuilder* IRBuilderHelper::operator->()
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;
}