Added code ignore bytecode link failures when generating native code. Moved native code and bytecode generation out of the main() function. llvm-svn: 8595