aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/llvm-nodebug/ortho_llvm.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/llvm-nodebug/ortho_llvm.adb')
-rw-r--r--src/ortho/llvm-nodebug/ortho_llvm.adb9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ortho/llvm-nodebug/ortho_llvm.adb b/src/ortho/llvm-nodebug/ortho_llvm.adb
index 56b22f092..054cd93ea 100644
--- a/src/ortho/llvm-nodebug/ortho_llvm.adb
+++ b/src/ortho/llvm-nodebug/ortho_llvm.adb
@@ -1243,7 +1243,7 @@ package body Ortho_LLVM is
-- New_Convert_Ov --
--------------------
- function New_Convert_Ov (Val : O_Enode; Rtype : O_Tnode) return O_Enode
+ function New_Convert (Val : O_Enode; Rtype : O_Tnode) return O_Enode
is
Res : ValueRef := Null_ValueRef;
begin
@@ -1334,11 +1334,16 @@ package body Ortho_LLVM is
-- Set_Insn_Dbg (Res);
return O_Enode'(LLVM => Res, Etype => Rtype);
else
- raise Program_Error with "New_Convert_Ov: not implemented for "
+ raise Program_Error with "New_Convert: not implemented for "
& ON_Type_Kind'Image (Val.Etype.Kind)
& " -> "
& ON_Type_Kind'Image (Rtype.Kind);
end if;
+ end New_Convert;
+
+ function New_Convert_Ov (Val : O_Enode; Rtype : O_Tnode) return O_Enode is
+ begin
+ return New_Convert (Val, Rtype);
end New_Convert_Ov;
-----------------