mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 00:10:37 +02:00
+ TUsedRegs.Dump
git-svn-id: trunk@38067 -
This commit is contained in:
parent
afa2b90a5d
commit
52510ea933
@ -85,6 +85,9 @@ Unit AoptObj;
|
||||
Function IsUsed(Reg: TRegister): Boolean;
|
||||
{ get all the currently used registers }
|
||||
Function GetUsedRegs: TRegSet;
|
||||
|
||||
{ outputs the current set }
|
||||
Procedure Dump(var t : text);
|
||||
Private
|
||||
Typ : TRegisterType;
|
||||
UsedRegs: TRegSet;
|
||||
@ -452,6 +455,18 @@ Unit AoptObj;
|
||||
End;
|
||||
|
||||
|
||||
procedure TUsedRegs.Dump(var t: text);
|
||||
var
|
||||
i: dword;
|
||||
begin
|
||||
write(t,Typ,' ');
|
||||
for i:=low(TRegSet) to high(TRegSet) do
|
||||
if i in UsedRegs then
|
||||
write(t,i,' ');
|
||||
writeln(t);
|
||||
end;
|
||||
|
||||
|
||||
Destructor TUsedRegs.Destroy;
|
||||
Begin
|
||||
inherited destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user