mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 11:28:06 +02:00
- Removed tcgloadnode.generate_picvaraccess, it is never used and is not necessary because PIC stuff is handled at lower levels.
git-svn-id: trunk@24764 -
This commit is contained in:
parent
109317e460
commit
4b820a1ca5
@ -31,7 +31,6 @@ uses
|
||||
type
|
||||
tmipsloadnode = class(tcgloadnode)
|
||||
function pass_1 : tnode; override;
|
||||
procedure generate_picvaraccess; override;
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -59,12 +58,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure tmipsloadnode.generate_picvaraccess;
|
||||
begin
|
||||
location.reference.base:=current_procinfo.got;
|
||||
location.reference.refaddr:=addr_pic;
|
||||
location.reference.symbol:=current_asmdata.RefAsmSymbol(tstaticvarsym(symtableentry).mangledname);
|
||||
end;
|
||||
|
||||
begin
|
||||
cloadnode := tmipsloadnode;
|
||||
|
@ -38,7 +38,6 @@ interface
|
||||
procedure generate_nested_access(vs: tsym);virtual;
|
||||
public
|
||||
procedure pass_generate_code;override;
|
||||
procedure generate_picvaraccess;virtual;
|
||||
procedure changereflocation(const ref: treference);
|
||||
end;
|
||||
|
||||
@ -214,15 +213,6 @@ implementation
|
||||
SecondLoad
|
||||
*****************************************************************************}
|
||||
|
||||
procedure tcgloadnode.generate_picvaraccess;
|
||||
begin
|
||||
{$ifndef sparc}
|
||||
location.reference.base:=current_procinfo.got;
|
||||
location.reference.symbol:=current_asmdata.RefAsmSymbol(tstaticvarsym(symtableentry).mangledname+'@GOT');
|
||||
{$endif sparc}
|
||||
end;
|
||||
|
||||
|
||||
procedure tcgloadnode.changereflocation(const ref: treference);
|
||||
var
|
||||
oldtemptype: ttemptype;
|
||||
|
@ -31,7 +31,6 @@ uses
|
||||
type
|
||||
tppcloadnode = class(tcgloadnode)
|
||||
procedure pass_generate_code override;
|
||||
procedure generate_picvaraccess; override;
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -51,10 +50,6 @@ begin
|
||||
inherited pass_generate_code;
|
||||
end;
|
||||
|
||||
procedure tppcloadnode.generate_picvaraccess;
|
||||
begin
|
||||
internalerror(200402291);
|
||||
end;
|
||||
|
||||
begin
|
||||
cloadnode := tppcloadnode;
|
||||
|
Loading…
Reference in New Issue
Block a user