Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] Diff of /trunk/sml3d/src/particles/compiler/translate.sml
ViewVC logotype

Diff of /trunk/sml3d/src/particles/compiler/translate.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1151, Sun May 8 00:54:41 2011 UTC revision 1152, Sun May 8 08:55:38 2011 UTC
# Line 962  Line 962 
962              render = render              render = render
963            }            }
964    
           val _ = IR.outputPgm(TextIO.stdErr, outPgm)  
965            val optimized = if (Checker.checkIR(outPgm)) then (printErr "\nPre-optimization complete."; Optimize.optimizeIR(outPgm)) else outPgm            val optimized = if (Checker.checkIR(outPgm)) then (printErr "\nPre-optimization complete."; Optimize.optimizeIR(outPgm)) else outPgm
966            in            in
             IR.outputPgm(TextIO.stdErr, optimized);  
967              (* Note: it only succeeds if we can optimize, too *)              (* Note: it only succeeds if we can optimize, too *)
968          if Checker.checkIR(optimized) then printErr "Compilation succeeded." else ();          if Checker.checkIR(optimized) then printErr "Compilation succeeded." else ();
969    

Legend:
Removed from v.1151  
changed lines
  Added in v.1152

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0