[llvm-commits] CVS: llvm/tools/lli/lli.cpp

Reid Spencer reid at x10sys.com
Fri Aug 25 10:43:34 PDT 2006



Changes in directory llvm/tools/lli:

lli.cpp updated: 1.58 -> 1.59
---
Log message:

For PR797: http://llvm.org/PR797 :
Remove exception throwing/handling from lib/Bytecode, and adjust its users
to compensate for changes in the interface.


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

 lli.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.58 llvm/tools/lli/lli.cpp:1.59
--- llvm/tools/lli/lli.cpp:1.58	Tue Aug  1 17:34:35 2006
+++ llvm/tools/lli/lli.cpp	Fri Aug 25 12:43:11 2006
@@ -59,11 +59,10 @@
     // Load the bytecode...
     std::string ErrorMsg;
     ModuleProvider *MP = 0;
-    try {
-      MP = getBytecodeModuleProvider(InputFile);
-    } catch (std::string &err) {
+    MP = getBytecodeModuleProvider(InputFile, &ErrorMsg);
+    if (!MP) {
       std::cerr << "Error loading program '" << InputFile << "': "
-                << err << "\n";
+                << ErrorMsg << "\n";
       exit(1);
     }
 






More information about the llvm-commits mailing list