|
@@ -5868,11 +5868,9 @@ TYPE
|
|
|
IF source = NIL THEN
|
|
|
null := 0;
|
|
|
GetCodeSectionNameForSymbol(td,name);
|
|
|
- IF (td.scope = NIL) OR (td.scope.ownerModule = module.module) THEN
|
|
|
- source := NewSection(module.allSections, Sections.ConstSection, name,td,commentPrintout # NIL);
|
|
|
- ELSE
|
|
|
- source := NewSection(module.importedSections, Sections.ConstSection, name,td,commentPrintout # NIL);
|
|
|
- END;
|
|
|
+ Basic.SuffixSegmentedName (name, Basic.MakeString("@"));
|
|
|
+ Basic.SuffixSegmentedName (name, module.module.name);
|
|
|
+ source := NewSection(module.allSections, Sections.ConstSection, name,td,commentPrintout # NIL);
|
|
|
IntermediateCode.InitImmediate(op,addressType,0);
|
|
|
source(IntermediateCode.Section).Emit(Data(position,op));
|
|
|
source.SetReferenced(FALSE)
|
|
@@ -12784,11 +12782,10 @@ TYPE
|
|
|
ELSE
|
|
|
(* data section in intermediate code *)
|
|
|
Global.GetSymbolSegmentedName(td,name);
|
|
|
- IF (td.scope = NIL) OR (td.scope.ownerModule = module.module) THEN
|
|
|
- tir := IntermediateCode.NewSection(module.allSections, Sections.ConstSection, name,td,implementationVisitor.dump # NIL);
|
|
|
- ELSE
|
|
|
- tir := IntermediateCode.NewSection(module.importedSections, Sections.ConstSection, name,td,implementationVisitor.dump # NIL);
|
|
|
- END;
|
|
|
+ Basic.SuffixSegmentedName (name, Basic.MakeString("@"));
|
|
|
+ Basic.SuffixSegmentedName (name, module.module.name);
|
|
|
+
|
|
|
+ tir := IntermediateCode.NewSection(module.allSections, Sections.ConstSection, name,td,implementationVisitor.dump # NIL);
|
|
|
IntermediateCode.InitImmediate(op,IntermediateCode.GetType(module.system, module.system.addressType),0);
|
|
|
tir.Emit(Data(-1,op));
|
|
|
END;
|