Classes for passes.
commitfca45e6213003f964bf3ca9831fd2a5e8a41b482
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 29 Apr 2006 09:02:38 +0000 (29 09:02 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 29 Apr 2006 09:02:38 +0000 (29 09:02 +0000)
treed89925f880374a6853bc30ce990e2b52c99f5657
parent1e5641f3df2edc347852111837d131a905a289e4
Classes for passes.

Added a new base class, Pass, representing a conversion pass.  Derived
Pass1 through Pass8 from it.  The classs have a run() method which
contains the code that used to be in the pass* functions.

For now, the class object is used as the key to control cleanup, but
this will change shortly.

* cvs2svn (Pass, Pass1, Pass2, Pass3, Pass4, Pass5, Pass6, Pass7,
  Pass8): New classes, with code moved from pass1(), pass2(), pass3(),
  pass4(), pass5(), pass6(), pass7(), and pass8().  All users of these
  classes changed accordingly.

  (convert): Call pass.run() instead of invoking the pass as a
  function.  Use pass.__class__ as the key passed to
  cleanup.cleanup().

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@1869 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn