public static AnnotationStore CreateStore(ControlFlowGraph cfg, BlockOptimization optimization)
        {
            AnnotationStoreBuilder builder;

            switch (optimization)
            {
            case BlockOptimization.Basic:
                builder = new BasicAnnotationBuilder(cfg);
                break;

            case BlockOptimization.Detailed:
                builder = new DetailedAnnotationBuilder(cfg);
                break;

            default:
                throw new ArgumentException();
            }

            return(builder.BuildStore());
        }
示例#2
0
 public StatementDecompiler(BlockOptimization optimization)
 {
     this.optimization = optimization;
 }
		public StatementDecompiler (BlockOptimization optimization)
		{
			this.optimization = optimization;
		}