From: Brian Paul Date: Thu, 14 Oct 2010 22:31:54 +0000 (-0600) Subject: llvmpipe: code to dump bytecode to file (disabled) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d7479d70568c84354338d0da0b7bed4d296c169;p=mesa.git llvmpipe: code to dump bytecode to file (disabled) --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 6e3c27e78e9..d2fbe277083 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -99,6 +99,7 @@ #include +#include 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. */