llvmpipe: code to dump bytecode to file (disabled)

This commit is contained in:
Brian Paul 2010-10-14 16:31:54 -06:00
parent 62450b3c49
commit 3d7479d705
1 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,7 @@
#include <llvm-c/Analysis.h>
#include <llvm-c/BitWriter.h>
static unsigned fs_no = 0;
@ -778,6 +779,11 @@ generate_fragment(struct llvmpipe_context *lp,
debug_printf("\n");
}
/* Dump byte code to a file */
if (0) {
LLVMWriteBitcodeToFile(lp_build_module, "llvmpipe.bc");
}
/*
* Translate the LLVM IR into machine code.
*/