* create/destroy codegen before/after generating exports, because it's

required when generating non-PIC code, and also for all Darwin platforms
    (required after r13801)

git-svn-id: trunk@14181 -
This commit is contained in:
Jonas Maebe 2009-11-15 11:19:09 +00:00
parent ef66a2aec5
commit 122e5714d8

View File

@ -59,6 +59,7 @@ uses
aasmdata,aasmtai,aasmcpu,
fmodule,
cgbase,cgutils,cpubase,cgobj,
cgcpu,
ncgutil,
verbose;
@ -135,6 +136,7 @@ var
r : treference;
{$endif x86}
begin
create_codegen;
new_section(current_asmdata.asmlists[al_procedures],sec_code,'',0);
hp2:=texported_item(current_module._exports.first);
while assigned(hp2) do
@ -180,6 +182,7 @@ begin
end;
hp2:=texported_item(hp2.next);
end;
destroy_codegen;
end;