Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
clean-compiler-and-rts
compiler
Commits
ea184ced
Commit
ea184ced
authored
Oct 05, 2001
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate and export all labels for records and constructors when ExportLocalLabels=True
parent
47676a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
backendC/CleanCompilerSources/codegen1.c
backendC/CleanCompilerSources/codegen1.c
+3
-3
No files found.
backendC/CleanCompilerSources/codegen1.c
View file @
ea184ced
...
...
@@ -812,7 +812,7 @@ static void GenerateConstructorDescriptorAndFunction (ConstructorList constructo
if
(
constructor_def
->
sdef_kind
==
CONSTRUCTOR
&&
constructor_def
->
sdef_strict_constructor
){
GenStrictConstructorDescriptor
(
constructor_def
,
constructor
->
cl_state_p
);
if
(
constructor_def
->
sdef_exported
||
(
constructor_def
->
sdef_mark
&
(
SDEF_USED_LAZILY_MASK
|
SDEF_USED_CURRIED_MASK
))){
if
(
constructor_def
->
sdef_exported
||
(
constructor_def
->
sdef_mark
&
(
SDEF_USED_LAZILY_MASK
|
SDEF_USED_CURRIED_MASK
))
||
ExportLocalLabels
){
LabDef
constructor_label
,
ealab
,
n_lab
,
d_lab
;
int
maxasize
,
asize
,
bsize
;
int
asp
,
bsp
,
arity
;
...
...
@@ -833,7 +833,7 @@ static void GenerateConstructorDescriptorAndFunction (ConstructorList constructo
MakeSymbolLabel
(
&
ealab
,
constructor_def
->
sdef_exported
?
CurrentModule
:
NULL
,
ea_pref
,
constructor_def
,
0
);
if
(
constructor_def
->
sdef_exported
||
(
constructor_def
->
sdef_mark
&
SDEF_USED_CURRIED_MASK
)){
if
(
constructor_def
->
sdef_exported
||
(
constructor_def
->
sdef_mark
&
SDEF_USED_CURRIED_MASK
)
||
ExportLocalLabels
){
CurrentAltLabel
.
lab_pref
=
l_pref
;
if
(
DoTimeProfiling
)
...
...
@@ -1275,7 +1275,7 @@ void GenerateCodeForConstructorsAndRecords (Symbol symbols)
GenRecordDescriptor
(
def
);
if
(
def
->
sdef_strict_constructor
&&
(
def
->
sdef_exported
||
(
def
->
sdef_mark
&
SDEF_USED_LAZILY_MASK
)))
if
(
def
->
sdef_strict_constructor
&&
(
def
->
sdef_exported
||
(
def
->
sdef_mark
&
SDEF_USED_LAZILY_MASK
)
||
ExportLocalLabels
))
GenLazyRecordEntry
(
def
);
for_l
(
fields
,
constructor
->
cl_fields
,
fl_next
)
...
...
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