mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-11 14:55:01 +01:00
* simplified code generation for paramaddr for a register parameter
git-svn-id: trunk@6276 -
This commit is contained in:
parent
4155eb6e04
commit
d50bc40cbe
@ -900,9 +900,14 @@ implementation
|
|||||||
hr : tregister;
|
hr : tregister;
|
||||||
begin
|
begin
|
||||||
cgpara.check_simple_location;
|
cgpara.check_simple_location;
|
||||||
hr:=getaddressregister(list);
|
if cgpara.location^.loc in [LOC_CREGISTER,LOC_REGISTER] then
|
||||||
a_loadaddr_ref_reg(list,r,hr);
|
a_loadaddr_ref_reg(list,r,cgpara.location^.register)
|
||||||
a_param_reg(list,OS_ADDR,hr,cgpara);
|
else
|
||||||
|
begin
|
||||||
|
hr:=getaddressregister(list);
|
||||||
|
a_loadaddr_ref_reg(list,r,hr);
|
||||||
|
a_param_reg(list,OS_ADDR,hr,cgpara);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user