示例#1
0
文件: options.cpp 项目: wuye9036/soul
void options_io::filterate( po::variables_map const & vm )
{
	if( !vm.count("out") ){
		// TODO: Guess output from input.
	}

	if( !vm.count("export-as") ){
		fmt = llvm_ir;
	} else {
		to_lower(fmt_str);
		if( fmt_str == "llvm" || fmt_str == "llvm_ir" ){
			fmt = llvm_ir;
		}
	}
}
示例#2
0
文件: options.cpp 项目: wuye9036/soul
void options_global::filterate( po::variables_map const & vm )
{
	detail = normal;
	if( vm.count("detail-level") ){

		to_lower( detail_str );

		if( detail_str == "quite" || detail_str == "q" ){
			detail = quite;
		} else if( detail_str == "brief" || detail_str == "b" ){
			detail = brief;
		} else if( detail_str == "normal" || detail_str == "n" ){
			detail = normal;
		} else if( detail_str == "verbose" || detail_str == "v" ){
			detail = verbose;
		} else if( detail_str == "debug" || detail_str == "d" ){
			detail = debug;
		}

	}
}