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

LLVM llvm at cs.uiuc.edu
Wed Jul 7 16:02:01 PDT 2004


Changes in directory llvm/lib/ExecutionEngine/JIT:

JIT.cpp updated: 1.34 -> 1.35

---
Log message:

Fix for bug 391: http://llvm.cs.uiuc.edu/PR391 . 
Improve exeception handling around bcreader invocations.


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.34 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.35
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.34	Sun Jul  4 07:19:56 2004
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp	Wed Jul  7 16:01:38 2004
@@ -117,6 +117,9 @@
   // Make sure we read in the function if it exists in this Module
   try {
     MP->materializeFunction(F);
+  } catch ( std::string& errmsg ) {
+    std::cerr << "Error parsing bytecode file: " << errmsg << "\n";
+    abort();
   } catch (...) {
     std::cerr << "Error parsing bytecode file!\n";
     abort();





More information about the llvm-commits mailing list