summaryrefslogtreecommitdiff
path: root/compiler/symsym.pas
diff options
context:
space:
mode:
authorpeter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2>2006-11-04 10:43:27 +0000
committerpeter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2>2006-11-04 10:43:27 +0000
commit56e79c634b1868697ea0b585d452f7442beab31f (patch)
tree63ab2d86073ab06dba89348bdfe7324ceb0a6e23 /compiler/symsym.pas
parent8fcebb524c3f785a3fe1ae728320187645cf528b (diff)
downloadfpc-56e79c634b1868697ea0b585d452f7442beab31f.tar.gz
* moved rtti to ncgrtti
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@5219 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/symsym.pas')
-rw-r--r--compiler/symsym.pas82
1 files changed, 0 insertions, 82 deletions
diff --git a/compiler/symsym.pas b/compiler/symsym.pas
index a04e65ba63..7284803707 100644
--- a/compiler/symsym.pas
+++ b/compiler/symsym.pas
@@ -327,21 +327,6 @@ interface
function GetCopy:tmacro;
end;
- { compiler generated symbol to point to rtti and init/finalize tables }
- trttisym = class(tstoredsym)
- private
- _mangledname : pshortstring;
- public
- lab : tasmsymbol;
- rttityp : trttitype;
- constructor create(const n:string;rt:trttitype);
- constructor ppuload(ppufile:tcompilerppufile);
- destructor destroy;override;
- procedure ppuwrite(ppufile:tcompilerppufile);override;
- function mangledname:string;override;
- function get_label:tasmsymbol;
- end;
-
var
generrorsym : tsym;
@@ -2024,71 +2009,4 @@ implementation
Result:=p;
end;
-
-{****************************************************************************
- TRTTISYM
-****************************************************************************}
-
- constructor trttisym.create(const n:string;rt:trttitype);
- const
- prefix : array[trttitype] of string[5]=('$rtti','$init');
- begin
- inherited create(rttisym,prefix[rt]+n);
- include(symoptions,sp_internal);
- lab:=nil;
- rttityp:=rt;
- end;
-
-
- destructor trttisym.destroy;
- begin
- if assigned(_mangledname) then
- begin
-{$ifdef MEMDEBUG}
- memmanglednames.start;
-{$endif MEMDEBUG}
- stringdispose(_mangledname);
-{$ifdef MEMDEBUG}
- memmanglednames.stop;
-{$endif MEMDEBUG}
- end;
- inherited destroy;
- end;
-
-
- constructor trttisym.ppuload(ppufile:tcompilerppufile);
- begin
- inherited ppuload(rttisym,ppufile);
- lab:=nil;
- rttityp:=trttitype(ppufile.getbyte);
- end;
-
-
- procedure trttisym.ppuwrite(ppufile:tcompilerppufile);
- begin
- inherited ppuwrite(ppufile);
- ppufile.putbyte(byte(rttityp));
- ppufile.writeentry(ibrttisym);
- end;
-
-
- function trttisym.mangledname : string;
- const
- prefix : array[trttitype] of string[5]=('RTTI_','INIT_');
- begin
- if not assigned(_mangledname) then
- _mangledname:=stringdup(make_mangledname(prefix[rttityp],owner,Copy(name,5,255)));
- result:=_mangledname^;
- end;
-
-
- function trttisym.get_label:tasmsymbol;
- begin
- { the label is always a global label }
- if not assigned(lab) then
- lab:=current_asmdata.RefAsmSymbol(mangledname);
- get_label:=lab;
- end;
-
-
end.