Exemple #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>();
 }
Exemple #2
0
        // Methods used to generate methods declaration and body.
        //
        public static MethodData GetMethodData(MethodReference method)
        {
            if (_methods.ContainsKey(method)) {
            return _methods[method];
            }

            MethodData md = new MethodData(method, _module);
            _methods[method] = md;

            return md;
        }