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); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits