Mercurial > hg > octave-lyh
changeset 15339:b49d707fe9d7
pt-jit.cc (jit_function_info::jit_function_info): Verify llvm IR when debugging
author | Max Brister <max@2bass.com> |
---|---|
date | Mon, 10 Sep 2012 00:49:59 -0600 |
parents | dc39c1d84c5b |
children | 9d0cdd49054b |
files | libinterp/interp-core/pt-jit.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interp-core/pt-jit.cc +++ b/libinterp/interp-core/pt-jit.cc @@ -1921,6 +1921,7 @@ std::cout << "-------------------- raw function "; std::cout << "--------------------\n"; std::cout << *raw_fn.to_llvm () << std::endl; + llvm::verifyFunction (*raw_fn.to_llvm ()); } #endif @@ -1969,6 +1970,7 @@ std::cout << "-------------------- optimized and wrapped "; std::cout << "--------------------\n"; std::cout << *llvm_function << std::endl; + llvm::verifyFunction (*llvm_function); } #endif