示例#1
0
 public TYPE(Mono.Cecil.TypeReference mono_type)
 {
     _cil_type                = mono_type.SwapInBclType();
     _cil_type_llvm           = _cil_type.ToTypeRef();
     _verification_type       = METAHELPER.InitVerificationType(_cil_type);
     _storage_type            = _verification_type;
     _storage_type_llvm       = _storage_type.ToTypeRef();
     _stack_verification_type = METAHELPER.InitStackVerificationType(_verification_type, _cil_type);
     _intermediate_type       = _stack_verification_type;
     _intermediate_type_llvm  = _stack_verification_type.ToTypeRef();
 }
示例#2
0
        public TYPE(System.Type system_type)
        {
            var mono_type = system_type.ToMonoTypeReference();

            _cil_type                = mono_type;
            _cil_type_llvm           = _cil_type.ToTypeRef();
            _storage_type            = _cil_type;
            _storage_type_llvm       = _storage_type.ToTypeRef();
            _verification_type       = METAHELPER.InitVerificationType(_cil_type);
            _stack_verification_type = METAHELPER.InitStackVerificationType(_verification_type, _cil_type);
            _intermediate_type       = _stack_verification_type;
            _intermediate_type_llvm  = _stack_verification_type.ToTypeRef();
        }