aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/mcode/ortho_code-x86-abi.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-10-17 06:18:36 +0200
committerTristan Gingold <tgingold@free.fr>2018-10-21 08:03:37 +0200
commited7ad157dbecc784bb2df44684442e88431db561 (patch)
tree491533354ca2add405e08869f66c1c74622f97d7 /src/ortho/mcode/ortho_code-x86-abi.adb
parent13000af67c96c2a3417fa321daa3fbf50165f54f (diff)
downloadghdl-ed7ad157dbecc784bb2df44684442e88431db561.tar.gz
ghdl-ed7ad157dbecc784bb2df44684442e88431db561.tar.bz2
ghdl-ed7ad157dbecc784bb2df44684442e88431db561.zip
Rework translation of unbounded and complex types.
Diffstat (limited to 'src/ortho/mcode/ortho_code-x86-abi.adb')
-rw-r--r--src/ortho/mcode/ortho_code-x86-abi.adb16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ortho/mcode/ortho_code-x86-abi.adb b/src/ortho/mcode/ortho_code-x86-abi.adb
index d76563a3e..ba9b437d9 100644
--- a/src/ortho/mcode/ortho_code-x86-abi.adb
+++ b/src/ortho/mcode/ortho_code-x86-abi.adb
@@ -243,7 +243,7 @@ package body Ortho_Code.X86.Abi is
is
use Ada.Text_IO;
use Ortho_Code.Debug.Int32_IO;
- Obj : constant O_Dnode := Get_Addr_Object (Stmt);
+ Obj : constant O_Dnode := Get_Addr_Decl (Stmt);
Frame : constant O_Enode := Get_Addrl_Frame (Stmt);
begin
if Frame = O_Enode_Null then
@@ -315,9 +315,9 @@ package body Ortho_Code.X86.Abi is
case Kind is
when OE_Const =>
Disp_Const (Stmt);
- when OE_Addrg =>
+ when OE_Addrd =>
Put ("&");
- Disp_Decl_Name (Get_Addr_Object (Stmt));
+ Disp_Decl_Name (Get_Addr_Decl (Stmt));
when OE_Add =>
Disp_Irm_Code (Get_Expr_Left (Stmt));
Put ("+");
@@ -348,9 +348,9 @@ package body Ortho_Code.X86.Abi is
Disp_Irm_Code (Get_Expr_Left (Stmt));
Put (" + ");
Disp_Irm_Code (Get_Expr_Right (Stmt));
- when OE_Addrg =>
+ when OE_Addrd =>
Put ("&");
- Disp_Decl_Name (Get_Addr_Object (Stmt));
+ Disp_Decl_Name (Get_Addr_Decl (Stmt));
when others =>
raise Program_Error;
end case;
@@ -587,10 +587,10 @@ package body Ortho_Code.X86.Abi is
Disp_Local (Stmt);
Put (")");
New_Line;
- when OE_Addrg =>
- Disp_Reg_Op_Name ("lea{addrg}");
+ when OE_Addrd =>
+ Disp_Reg_Op_Name ("lea{addrd}");
Put ("&");
- Disp_Decl_Name (Get_Addr_Object (Stmt));
+ Disp_Decl_Name (Get_Addr_Decl (Stmt));
New_Line;
when OE_Add =>
Disp_Reg_Op_Name ("lea{add}");