mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:09:33 +02:00
* tMIPSELnotnode.second_boolean: reuse common handle_locjump method.
git-svn-id: trunk@26735 -
This commit is contained in:
parent
83fda1e6a9
commit
d29300df13
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user