# HG changeset patch # User Max Brister # Date 1345931565 21600 # Node ID ffa0b85a87f447d8f371fb4a345c935243e6a5f1 # Parent c27a1e131b16b7c2a1a3b2149921362377239780 pt-jit.cc (jit_info::compile): Fix compile error with OCTAVE_JIT_DEBUG defined diff -r c27a1e131b16 -r ffa0b85a87f4 libinterp/interp-core/pt-jit.cc --- a/libinterp/interp-core/pt-jit.cc Sat Aug 25 15:43:19 2012 -0600 +++ b/libinterp/interp-core/pt-jit.cc Sat Aug 25 15:52:45 2012 -0600 @@ -1711,11 +1711,12 @@ infer.infer (); #ifdef OCTAVE_JIT_DEBUG - jit_block *entry_block = infer.get_blocks ().front (); + jit_block_list& blocks = infer.get_blocks (); + jit_block *entry_block = blocks.front (); entry_block->label (); std::cout << "-------------------- Compiling tree --------------------\n"; std::cout << tee.str_print_code () << std::endl; - entry_block->print (std::cout, "octave jit ir"); + blocks.print (std::cout, "octave jit ir"); #endif jit_factory& factory = conv.get_factory (); @@ -1738,9 +1739,9 @@ #ifdef OCTAVE_JIT_DEBUG std::cout << "-------------------- llvm ir --------------------"; llvm::raw_os_ostream llvm_cout (std::cout); - function->print (llvm_cout); + llvm_function->print (llvm_cout); std::cout << std::endl; - llvm::verifyFunction (*function); + llvm::verifyFunction (*llvm_function); #endif tjit.optimize (llvm_function); @@ -1748,7 +1749,6 @@ #ifdef OCTAVE_JIT_DEBUG std::cout << "-------------------- optimized llvm ir " << "--------------------\n"; - llvm::raw_os_ostream llvm_cout (std::cout); llvm_function->print (llvm_cout); llvm_cout.flush (); std::cout << std::endl;