Browse Source

Use the new passes for processing the source code.

pull/1/head
triton 13 years ago
parent
commit
a0a324974d
  1. 9
      src/Generator/CodeGenerator.cs

9
src/Generator/CodeGenerator.cs

@ -69,16 +69,13 @@ namespace Cxxi @@ -69,16 +69,13 @@ namespace Cxxi
if (transform != null)
transform.Preprocess(new LibraryHelpers(library));
var passes = new PassBuilder();
//passes.AddPass(new Transform());
//passes.AddPass(new Preprocess());
var passes = new PassBuilder(library);
passes.ResolveIncompleteDecls(typeDatabase);
passes.CleanInvalidDeclNames();
if (transform != null)
transform.SetupPasses(passes);
var preprocess = new Preprocess(typeDatabase);
preprocess.ProcessLibrary(library);
var transformer = new Transform() { Options = options, Passes = passes };
transformer.TransformLibrary(library);

Loading…
Cancel
Save