Beispiel #1
0
 public Compiler(AssemblyDefinition assemblyDefinition)
 {
     this.assemblyDefinition             = assemblyDefinition;
     this.ModuleRef                      = LLVM.ModuleCreateWithName("module");
     this.InstructionProcessorDispatcher = new InstructionProcessorDispatcher();
     this.TypeLookup                     = new TypeLookup();
     this.StaticFieldLookup              = new StaticFieldLookup(ModuleRef, TypeLookup);
     this.MethodLookup                   = new MethodLookup(ModuleRef, TypeLookup);
 }
 public MethodCompiler(Compiler compiler, MethodDefinition methodDef)
 {
     this.compiler         = compiler;
     this.MethodDef        = methodDef;
     this.FunctionValueRef = MethodLookup.DeclareMethod(methodDef);
 }