diff libinterp/interp-core/pt-jit.cc @ 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 3f43e9d6d86e
children 6bdf379592d9
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