diff options
Diffstat (limited to 'compiler/aarch64/cpubase.pas')
-rw-r--r-- | compiler/aarch64/cpubase.pas | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/aarch64/cpubase.pas b/compiler/aarch64/cpubase.pas index 252ec8ab54..f39813013e 100644 --- a/compiler/aarch64/cpubase.pas +++ b/compiler/aarch64/cpubase.pas @@ -328,6 +328,7 @@ unit cpubase; function dwarf_reg(r:tregister):shortint; function dwarf_reg_no_error(r:tregister):shortint; + function eh_return_data_regno(nr: longint): longint; function is_shifter_const(d: aint; size: tcgsize): boolean; @@ -609,4 +610,13 @@ unit cpubase; end; end; + + function eh_return_data_regno(nr: longint): longint; + begin + if (nr>=0) and (nr<2) then + result:=nr + else + result:=-1; + end; + end. |