Mercurial > hg > octave-lyh
changeset 15234:ffa0b85a87f4
pt-jit.cc (jit_info::compile): Fix compile error with OCTAVE_JIT_DEBUG defined
author | Max Brister <max@2bass.com> |
---|---|
date | Sat, 25 Aug 2012 15:52:45 -0600 |
parents | c27a1e131b16 |
children | ab3d4c1affee |
files | libinterp/interp-core/pt-jit.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interp-core/pt-jit.cc +++ b/libinterp/interp-core/pt-jit.cc @@ -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;