mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
[svn r355] Get rid of IRState::exps and topexp.
This commit is contained in:
parent
f0d8b9e153
commit
717d52d4f0
8 changed files with 39 additions and 214 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue