示例#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>();
 }
示例#2
0
文件: Cil2Llvm.cs 项目: tytouf/cilc
        // 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;
        }