mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 10:39:18 +02:00
- removed withnode (was no longer used since a very long time)
git-svn-id: trunk@40777 -
This commit is contained in:
parent
f89431c4f7
commit
170ec00348
@ -55,10 +55,6 @@ interface
|
|||||||
procedure pass_generate_code;override;
|
procedure pass_generate_code;override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
tcgwithnode = class(twithnode)
|
|
||||||
procedure pass_generate_code;override;
|
|
||||||
end;
|
|
||||||
|
|
||||||
tcgvecnode = class(tvecnode)
|
tcgvecnode = class(tvecnode)
|
||||||
function get_mul_size : asizeint;
|
function get_mul_size : asizeint;
|
||||||
private
|
private
|
||||||
@ -607,19 +603,6 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
{*****************************************************************************
|
|
||||||
TCGWITHNODE
|
|
||||||
*****************************************************************************}
|
|
||||||
|
|
||||||
procedure tcgwithnode.pass_generate_code;
|
|
||||||
begin
|
|
||||||
location_reset(location,LOC_VOID,OS_NO);
|
|
||||||
|
|
||||||
if assigned(left) then
|
|
||||||
secondpass(left);
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
TCGVECNODE
|
TCGVECNODE
|
||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
@ -1109,6 +1092,5 @@ begin
|
|||||||
caddrnode:=tcgaddrnode;
|
caddrnode:=tcgaddrnode;
|
||||||
cderefnode:=tcgderefnode;
|
cderefnode:=tcgderefnode;
|
||||||
csubscriptnode:=tcgsubscriptnode;
|
csubscriptnode:=tcgsubscriptnode;
|
||||||
cwithnode:=tcgwithnode;
|
|
||||||
cvecnode:=tcgvecnode;
|
cvecnode:=tcgvecnode;
|
||||||
end.
|
end.
|
||||||
|
@ -136,25 +136,12 @@ interface
|
|||||||
end;
|
end;
|
||||||
tvecnodeclass = class of tvecnode;
|
tvecnodeclass = class of tvecnode;
|
||||||
|
|
||||||
twithnode = class(tunarynode)
|
|
||||||
constructor create(l:tnode);
|
|
||||||
destructor destroy;override;
|
|
||||||
constructor ppuload(t:tnodetype;ppufile:tcompilerppufile);override;
|
|
||||||
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
|
||||||
function dogetcopy : tnode;override;
|
|
||||||
function pass_1 : tnode;override;
|
|
||||||
function docompare(p: tnode): boolean; override;
|
|
||||||
function pass_typecheck:tnode;override;
|
|
||||||
end;
|
|
||||||
twithnodeclass = class of twithnode;
|
|
||||||
|
|
||||||
var
|
var
|
||||||
cloadvmtaddrnode : tloadvmtaddrnodeclass= tloadvmtaddrnode;
|
cloadvmtaddrnode : tloadvmtaddrnodeclass= tloadvmtaddrnode;
|
||||||
caddrnode : taddrnodeclass= taddrnode;
|
caddrnode : taddrnodeclass= taddrnode;
|
||||||
cderefnode : tderefnodeclass= tderefnode;
|
cderefnode : tderefnodeclass= tderefnode;
|
||||||
csubscriptnode : tsubscriptnodeclass= tsubscriptnode;
|
csubscriptnode : tsubscriptnodeclass= tsubscriptnode;
|
||||||
cvecnode : tvecnodeclass= tvecnode;
|
cvecnode : tvecnodeclass= tvecnode;
|
||||||
cwithnode : twithnodeclass= twithnode;
|
|
||||||
cloadparentfpnode : tloadparentfpnodeclass = tloadparentfpnode;
|
cloadparentfpnode : tloadparentfpnodeclass = tloadparentfpnode;
|
||||||
|
|
||||||
function is_big_untyped_addrnode(p: tnode): boolean;
|
function is_big_untyped_addrnode(p: tnode): boolean;
|
||||||
@ -1315,66 +1302,6 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
{*****************************************************************************
|
|
||||||
TWITHNODE
|
|
||||||
*****************************************************************************}
|
|
||||||
|
|
||||||
constructor twithnode.create(l:tnode);
|
|
||||||
begin
|
|
||||||
inherited create(withn,l);
|
|
||||||
fileinfo:=l.fileinfo;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
destructor twithnode.destroy;
|
|
||||||
begin
|
|
||||||
inherited destroy;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
constructor twithnode.ppuload(t:tnodetype;ppufile:tcompilerppufile);
|
|
||||||
begin
|
|
||||||
inherited ppuload(t,ppufile);
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
procedure twithnode.ppuwrite(ppufile:tcompilerppufile);
|
|
||||||
begin
|
|
||||||
inherited ppuwrite(ppufile);
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function twithnode.dogetcopy : tnode;
|
|
||||||
var
|
|
||||||
p : twithnode;
|
|
||||||
begin
|
|
||||||
p:=twithnode(inherited dogetcopy);
|
|
||||||
result:=p;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function twithnode.pass_typecheck:tnode;
|
|
||||||
begin
|
|
||||||
result:=nil;
|
|
||||||
resultdef:=voidtype;
|
|
||||||
if assigned(left) then
|
|
||||||
typecheckpass(left);
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function twithnode.pass_1 : tnode;
|
|
||||||
begin
|
|
||||||
result:=nil;
|
|
||||||
expectloc:=LOC_VOID;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function twithnode.docompare(p: tnode): boolean;
|
|
||||||
begin
|
|
||||||
docompare :=
|
|
||||||
inherited docompare(p);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function is_big_untyped_addrnode(p: tnode): boolean;
|
function is_big_untyped_addrnode(p: tnode): boolean;
|
||||||
begin
|
begin
|
||||||
is_big_untyped_addrnode:=(p.nodetype=addrn) and
|
is_big_untyped_addrnode:=(p.nodetype=addrn) and
|
||||||
|
@ -86,7 +86,6 @@ interface
|
|||||||
whilerepeatn, {A while or repeat statement}
|
whilerepeatn, {A while or repeat statement}
|
||||||
forn, {A for loop}
|
forn, {A for loop}
|
||||||
exitn, {An exit statement}
|
exitn, {An exit statement}
|
||||||
withn, {A with statement}
|
|
||||||
casen, {A case statement}
|
casen, {A case statement}
|
||||||
labeln, {A label}
|
labeln, {A label}
|
||||||
goton, {A goto statement}
|
goton, {A goto statement}
|
||||||
@ -171,7 +170,6 @@ interface
|
|||||||
'whilerepeatn',
|
'whilerepeatn',
|
||||||
'forn',
|
'forn',
|
||||||
'exitn',
|
'exitn',
|
||||||
'withn',
|
|
||||||
'casen',
|
'casen',
|
||||||
'labeln',
|
'labeln',
|
||||||
'goton',
|
'goton',
|
||||||
|
@ -92,7 +92,7 @@ unit optconstprop;
|
|||||||
iterate manually here so we have full controll how all nodes are processed }
|
iterate manually here so we have full controll how all nodes are processed }
|
||||||
|
|
||||||
{ We cannot analyze beyond those nodes, so we terminate to be on the safe side }
|
{ We cannot analyze beyond those nodes, so we terminate to be on the safe side }
|
||||||
if (n.nodetype in [addrn,derefn,asmn,withn,casen,whilerepeatn,labeln,continuen,breakn,
|
if (n.nodetype in [addrn,derefn,asmn,casen,whilerepeatn,labeln,continuen,breakn,
|
||||||
tryexceptn,raisen,tryfinallyn,onn,loadparentfpn,loadvmtaddrn,guidconstn,rttin,addoptn,asn,goton,
|
tryexceptn,raisen,tryfinallyn,onn,loadparentfpn,loadvmtaddrn,guidconstn,rttin,addoptn,asn,goton,
|
||||||
objcselectorn,objcprotocoln]) then
|
objcselectorn,objcprotocoln]) then
|
||||||
exit(false)
|
exit(false)
|
||||||
|
@ -318,7 +318,6 @@ unit optutils;
|
|||||||
{ raise never returns }
|
{ raise never returns }
|
||||||
p.successor:=nil;
|
p.successor:=nil;
|
||||||
end;
|
end;
|
||||||
withn,
|
|
||||||
tryexceptn,
|
tryexceptn,
|
||||||
tryfinallyn,
|
tryfinallyn,
|
||||||
onn:
|
onn:
|
||||||
|
@ -132,7 +132,6 @@ implementation
|
|||||||
'while_repeat', {whilerepeatn}
|
'while_repeat', {whilerepeatn}
|
||||||
'for', {forn}
|
'for', {forn}
|
||||||
'exitn', {exitn}
|
'exitn', {exitn}
|
||||||
'with', {withn}
|
|
||||||
'case', {casen}
|
'case', {casen}
|
||||||
'label', {labeln}
|
'label', {labeln}
|
||||||
'goto', {goton}
|
'goto', {goton}
|
||||||
|
@ -43,7 +43,7 @@ type
|
|||||||
{$endif Test_Double_checksum}
|
{$endif Test_Double_checksum}
|
||||||
|
|
||||||
const
|
const
|
||||||
CurrentPPUVersion = 205;
|
CurrentPPUVersion = 206;
|
||||||
|
|
||||||
{ unit flags }
|
{ unit flags }
|
||||||
uf_init = $000001; { unit has initialization section }
|
uf_init = $000001; { unit has initialization section }
|
||||||
|
@ -776,8 +776,6 @@ implementation
|
|||||||
symtablestack.pop(TSymtable(withsymtablelist[i]));
|
symtablestack.pop(TSymtable(withsymtablelist[i]));
|
||||||
withsymtablelist.free;
|
withsymtablelist.free;
|
||||||
|
|
||||||
// p:=cwithnode.create(right,twithsymtable(withsymtable),levelcount,refnode);
|
|
||||||
|
|
||||||
{ Finalize complex withnode with destroy of temp }
|
{ Finalize complex withnode with destroy of temp }
|
||||||
if assigned(newblock) then
|
if assigned(newblock) then
|
||||||
begin
|
begin
|
||||||
|
@ -798,7 +798,6 @@ implementation
|
|||||||
nodeclass[whilerepeatn]:=cwhilerepeatnode;
|
nodeclass[whilerepeatn]:=cwhilerepeatnode;
|
||||||
nodeclass[forn]:=cfornode;
|
nodeclass[forn]:=cfornode;
|
||||||
nodeclass[exitn]:=cexitnode;
|
nodeclass[exitn]:=cexitnode;
|
||||||
nodeclass[withn]:=cwithnode;
|
|
||||||
nodeclass[casen]:=ccasenode;
|
nodeclass[casen]:=ccasenode;
|
||||||
nodeclass[labeln]:=clabelnode;
|
nodeclass[labeln]:=clabelnode;
|
||||||
nodeclass[goton]:=cgotonode;
|
nodeclass[goton]:=cgotonode;
|
||||||
|
Loading…
Reference in New Issue
Block a user