From 4eb8358f0dd408713035b58526eb0707e27c92b3 Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 14 Jul 2013 04:14:48 +0100 Subject: [PATCH] Change pass builder to be initialized in the constructor. --- src/Generator/Driver.cs | 3 +++ 1 file changed, 3 insertions(+) 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()