Ejemplo n.º 1
0
 public MethodBuilder(LLVM.Builder builder, MethodData method)
 {
     _builder   = builder;
     _method    = method;
     _stack     = new Stack<LLVM.Value>();
     _params    = new List<LLVM.Value>();
     _variables = new List<LLVM.Value>();
     _labels    = new Dictionary<int, LLVM.BasicBlock>();
 }
Ejemplo n.º 2
0
 public MethodBuilder(LLVM.Builder builder, MethodData method)
 {
     _builder   = builder;
     _method    = method;
     _stack     = new Stack <LLVM.Value>();
     _params    = new List <LLVM.Value>();
     _variables = new List <LLVM.Value>();
     _labels    = new Dictionary <int, LLVM.BasicBlock>();
 }
Ejemplo n.º 3
0
 public static void Init(LLVM.Module module, LLVM.Builder builder)
 {
     if (_module == null)
     {
         _module  = module;
         _builder = builder;
         _types   = new Dictionary <TypeReference, CodeGenType>();
         _methods = new Dictionary <MethodReference, MethodData>();
     }
 }
Ejemplo n.º 4
0
 public static void Init(LLVM.Module module, LLVM.Builder builder)
 {
     if (_module == null) {
     _module  = module;
     _builder = builder;
     _types   = new Dictionary<TypeReference, CodeGenType>();
     _methods = new Dictionary<MethodReference, MethodData>();
     }
 }