Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
03d57f19
Commit
03d57f19
authored
Oct 10, 2015
by
yoogx
Browse files
* RU: add new parameter 'Elaborated', propagrate elaboration
requirements.
parent
1ec4ad0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/backends/ocarina-backends-po_hi_ada-runtime.adb
View file @
03d57f19
...
...
@@ -335,7 +335,10 @@ package body Ocarina.Backends.PO_HI_Ada.Runtime is
-- RU --
--------
function
RU
(
Id
:
RU_Id
;
Withed
:
Boolean
:=
True
)
return
Node_Id
is
function
RU
(
Id
:
RU_Id
;
Withed
:
Boolean
:=
True
;
Elaborated
:
Boolean
:=
False
)
return
Node_Id
is
Result
:
Node_Id
;
begin
-- This is a runtime unit and not a runtime entity, so it's
...
...
@@ -343,7 +346,7 @@ package body Ocarina.Backends.PO_HI_Ada.Runtime is
Result
:=
Copy_Designator
(
RUD
(
Id
),
False
);
if
Withed
then
Add_With_Package
(
Result
);
Add_With_Package
(
Result
,
Elaborated
=>
Elaborated
);
end
if
;
return
Result
;
end
RU
;
...
...
src/backends/ocarina-backends-po_hi_ada-runtime.ads
View file @
03d57f19
...
...
@@ -293,7 +293,9 @@ package Ocarina.Backends.PO_HI_Ada.Runtime is
function
RE
(
Id
:
RE_Id
;
Withed
:
Boolean
:=
True
)
return
Node_Id
;
-- Return a designator for entity Id
function
RU
(
Id
:
RU_Id
;
Withed
:
Boolean
:=
True
)
return
Node_Id
;
function
RU
(
Id
:
RU_Id
;
Withed
:
Boolean
:=
True
;
Elaborated
:
Boolean
:=
False
)
return
Node_Id
;
-- Return a node for Unit Id
end
Ocarina
.
Backends
.
PO_HI_Ada
.
Runtime
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment