diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-03-29 22:31:55 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-03-29 22:31:55 +0000 |
commit | 0a3d011fc90f8dac768ae4da946ee8e93f7afa3d (patch) | |
tree | d29bc38b7a94294d109f886a16aef25ce3037d40 /compiler/optloop.pas | |
parent | b254e20751a96451551fcb51351e0fabb2d8b19d (diff) | |
download | fpc-0a3d011fc90f8dac768ae4da946ee8e93f7afa3d.tar.gz |
+ support overriding tdef/tsym methods with target-specific functionality:
o made all (non-abstract) tdef and tsym constructors virtual
o added c*def/c*sym classref types for every (non-abstract) t*def/t*sym
class
o added cpusym unit for every architecture that derives a tcpu*def/tcpu*sym
class from the base classes, and initialises the c*def/c*sym classes with
them. This is done so that the llvm target will be able to derive from
the tcpu*def/sym classes without umpteen ifdefs, and it also means that
the WPO can devirtualise everything because the c* variables are only
initialised with one class type
o replaced all t*def/t*sym constructor calls with c*def/c*sym constructor
calls
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@27361 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/optloop.pas')
-rw-r--r-- | compiler/optloop.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optloop.pas b/compiler/optloop.pas index 1d1f6662f1..9a8ea5acaf 100644 --- a/compiler/optloop.pas +++ b/compiler/optloop.pas @@ -155,7 +155,7 @@ unit optloop; if (counts mod unrolls<>0) and ((counts mod unrolls)=unrolls-i) then begin - tfornode(node).entrylabel:=clabelnode.create(cnothingnode.create,tlabelsym.create('$optunrol')); + tfornode(node).entrylabel:=clabelnode.create(cnothingnode.create,clabelsym.create('$optunrol')); addstatement(unrollstatement,tfornode(node).entrylabel); end; |