diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index a162767e..391de153 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -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 Diagnostics = diagnostics; Parser = new Parser(Options); TypeDatabase = new TypeMapDatabase(); + Passes = new PassBuilder(this); } static void ValidateOptions(DriverOptions options) @@ -69,6 +71,7 @@ namespace CppSharp ValidateOptions(Options); Generator = Generators[Options.GeneratorKind](this); + TypeDatabase.SetupTypeMaps(); } public bool ParseCode()