Write bitcode to file