Author: jquelin
Date: Wed Oct 3 09:38:21 2007
New Revision: 21783
Modified:
branches/pdd15oo/compilers/past-pm/PAST/Node.pir
branches/pdd15oo/compilers/pct/src/HLLCompiler.pir
Log:
more find_type removal
Modified: branches/pdd15oo/compilers/past-pm/PAST/Node.pir
==============================================================================
--- branches/pdd15oo/compilers/past-pm/PAST/Node.pir (original)
+++ branches/pdd15oo/compilers/past-pm/PAST/Node.pir Wed Oct 3 09:38:21 2007
@@ -124,8 +124,7 @@
.sub 'clone' :vtable :method
.local pmc res
$S0 = classname self
- $I0 = find_type $S0
- res = new $I0
+ res = new $S0
.local pmc iter
iter = self.'iterator'()
iter_child_loop:
Modified: branches/pdd15oo/compilers/pct/src/HLLCompiler.pir
==============================================================================
--- branches/pdd15oo/compilers/pct/src/HLLCompiler.pir (original)
+++ branches/pdd15oo/compilers/pct/src/HLLCompiler.pir Wed Oct 3 09:38:21 2007
@@ -630,8 +630,7 @@
.local pmc ostgrammar, ostbuilder
ostgrammar_name = self.'ostgrammar'()
unless ostgrammar_name goto default_ostgrammar
- $I0 = find_type ostgrammar_name
- ostgrammar = new $I0
+ ostgrammar = new ostgrammar_name
ostbuilder = ostgrammar.'apply'(source)
.return ostbuilder.'get'('post')