* tMIPSELnotnode.second_boolean: reuse common handle_locjump method.

git-svn-id: trunk@26735 -
This commit is contained in:
sergei 2014-02-08 21:10:01 +00:00
parent 83fda1e6a9
commit d29300df13

View File

@ -233,25 +233,9 @@ end;
procedure tMIPSELnotnode.second_boolean;
var
hl: tasmlabel;
tmpreg : TRegister;
begin
{ if the location is LOC_JUMP, we do the secondpass after the
labels are allocated
}
if left.expectloc = LOC_JUMP then
begin
hl := current_procinfo.CurrTrueLabel;
current_procinfo.CurrTrueLabel := current_procinfo.CurrFalseLabel;
current_procinfo.CurrFalseLabel := hl;
secondpass(left);
maketojumpbool(current_asmdata.CurrAsmList, left, lr_load_regvars);
hl := current_procinfo.CurrTrueLabel;
current_procinfo.CurrTrueLabel := current_procinfo.CurrFalseLabel;
current_procinfo.CurrFalseLabel := hl;
location.loc := LOC_JUMP;
end
else
if not handle_locjump then
begin
secondpass(left);
case left.location.loc of