Commit b3b28b0c by Javier Miranda Committed by Arnaud Charlet

exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the generation of…

exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the generation of TSDs to the DOTNET compiler.

2011-08-02  Javier Miranda  <miranda@adacore.com>

	* exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
	generation of TSDs to the DOTNET compiler.
	* exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
	generation of TSDs to the DOTNET compiler.

From-SVN: r177164
parent 9732e886
2011-08-02 Javier Miranda <miranda@adacore.com> 2011-08-02 Javier Miranda <miranda@adacore.com>
* exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the
generation of TSDs to the DOTNET compiler.
* exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the
generation of TSDs to the DOTNET compiler.
2011-08-02 Javier Miranda <miranda@adacore.com>
* exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data
record of all the tagged types declared inside library level package record of all the tagged types declared inside library level package
declarations, library level package bodies or library level subprograms. declarations, library level package bodies or library level subprograms.
......
...@@ -5125,8 +5125,11 @@ package body Exp_Ch6 is ...@@ -5125,8 +5125,11 @@ package body Exp_Ch6 is
-- VM targets we generate now the Type Specific Data record of all the -- VM targets we generate now the Type Specific Data record of all the
-- enclosing tagged type declarations -- enclosing tagged type declarations
-- Temporarily restrict this support to the .NET compiler???
if not Tagged_Type_Expansion if not Tagged_Type_Expansion
and then Unit (Cunit (Main_Unit)) = N and then Unit (Cunit (Main_Unit)) = N
and then VM_Target = CLI_Target
then then
Build_VM_TSDs (N); Build_VM_TSDs (N);
end if; end if;
......
...@@ -1559,7 +1559,11 @@ package body Exp_Ch7 is ...@@ -1559,7 +1559,11 @@ package body Exp_Ch7 is
-- In VM targets there is no need to build dispatch tables but -- In VM targets there is no need to build dispatch tables but
-- we must generate the corresponding Type Specific Data record -- we must generate the corresponding Type Specific Data record
elsif Unit (Cunit (Main_Unit)) = N then -- Temporarily restrict this support to the .NET compiler???
elsif Unit (Cunit (Main_Unit)) = N
and then VM_Target = CLI_Target
then
Build_VM_TSDs (N); Build_VM_TSDs (N);
end if; end if;
end if; end if;
...@@ -1668,7 +1672,11 @@ package body Exp_Ch7 is ...@@ -1668,7 +1672,11 @@ package body Exp_Ch7 is
-- In VM targets there is no need to build dispatch tables but -- In VM targets there is no need to build dispatch tables but
-- we must generate the corresponding Type Specific Data record -- we must generate the corresponding Type Specific Data record
elsif Unit (Cunit (Main_Unit)) = N then -- Temporarily restrict this support to the .NET compiler???
elsif Unit (Cunit (Main_Unit)) = N
and then VM_Target = CLI_Target
then
-- Enter the scope of the package because the new declarations -- Enter the scope of the package because the new declarations
-- are appended at the end of the package and must be analyzed -- are appended at the end of the package and must be analyzed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment