[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/JIT.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 31 18:33:00 PST 2004


Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.31 -> 1.32

---
Log message:

Print an error message if there is an error materialize the bc file.


---
Diffs of the changes:  (+6 -1)

Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.31 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.32
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.31	Fri Dec 26 00:13:47 2003
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Sat Jan 31 18:32:35 2004
@@ -110,7 +110,12 @@
     return Addr;   // Check if function already code gen'd
 
   // Make sure we read in the function if it exists in this Module
-  MP->materializeFunction(F);
+  try {
+    MP->materializeFunction(F);
+  } catch (...) {
+    std::cerr << "Error parsing bytecode file!\n";
+    abort();
+  }
 
   if (F->isExternal()) {
     void *Addr = getPointerToNamedFunction(F->getName());





More information about the llvm-commits mailing list