Browse Source

Change pass builder to be initialized in the constructor.

pull/12/merge
triton 13 years ago
parent
commit
4eb8358f0d
  1. 3
      src/Generator/Driver.cs

3
src/Generator/Driver.cs

@ -29,6 +29,7 @@ namespace CppSharp @@ -29,6 +29,7 @@ namespace CppSharp
public IDiagnosticConsumer Diagnostics { get; private set; }
public Parser Parser { get; private set; }
public TypeMapDatabase TypeDatabase { get; private set; }
public PassBuilder Passes { get; private set; }
public Generator Generator { get; private set; }
public Library Library { get; private set; }
@ -40,6 +41,7 @@ namespace CppSharp @@ -40,6 +41,7 @@ namespace CppSharp
Diagnostics = diagnostics;
Parser = new Parser(Options);
TypeDatabase = new TypeMapDatabase();
Passes = new PassBuilder(this);
}
static void ValidateOptions(DriverOptions options)
@ -69,6 +71,7 @@ namespace CppSharp @@ -69,6 +71,7 @@ namespace CppSharp
ValidateOptions(Options);
Generator = Generators[Options.GeneratorKind](this);
TypeDatabase.SetupTypeMaps();
}
public bool ParseCode()

Loading…
Cancel
Save