Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
03d57f19
Commit
03d57f19
authored
Oct 10, 2015
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* RU: add new parameter 'Elaborated', propagrate elaboration
requirements.
parent
1ec4ad0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/backends/ocarina-backends-po_hi_ada-runtime.adb
src/backends/ocarina-backends-po_hi_ada-runtime.adb
+5
-2
src/backends/ocarina-backends-po_hi_ada-runtime.ads
src/backends/ocarina-backends-po_hi_ada-runtime.ads
+3
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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