|
|
|
@ -66,9 +66,6 @@ int main( int argc, const char *argv[] )
|
|
|
|
|
vm_enter_offset + file_header->image_base );
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::printf( "> lifted rtn_0x%p, number of blocks = %d\n", vm_enter_offset + file_header->image_base,
|
|
|
|
|
vmp2_code_blocks.size() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
llvm::LLVMInitializeX86TargetInfo();
|
|
|
|
@ -78,8 +75,6 @@ int main( int argc, const char *argv[] )
|
|
|
|
|
llvm::LLVMInitializeX86AsmPrinter();
|
|
|
|
|
|
|
|
|
|
vmp_devirt.compile( compiled_obj );
|
|
|
|
|
std::printf( "> compiled all routines... compiled obj size = %d\n", compiled_obj.size() );
|
|
|
|
|
|
|
|
|
|
if ( parser.exists( "genobj" ) )
|
|
|
|
|
std::ofstream( parser.get< std::string >( "out" ).append( ".o" ), std::ios::binary )
|
|
|
|
|
.write( reinterpret_cast< const char * >( compiled_obj.data() ), compiled_obj.size() );
|
|
|
|
|