[llvm-commits] CVS: llvm/lib/Debugger/Debugger.cpp

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



Changes in directory llvm/lib/Debugger:

Debugger.cpp updated: 1.6 -> 1.7
---
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:  (+1 -9)

 Debugger.cpp |   10 +---------
 1 files changed, 1 insertion(+), 9 deletions(-)


Index: llvm/lib/Debugger/Debugger.cpp
diff -u llvm/lib/Debugger/Debugger.cpp:1.6 llvm/lib/Debugger/Debugger.cpp:1.7
--- llvm/lib/Debugger/Debugger.cpp:1.6	Fri Mar 10 16:39:48 2006
+++ llvm/lib/Debugger/Debugger.cpp	Fri Aug 25 12:43:11 2006
@@ -45,15 +45,7 @@
 
 static Module *
 getMaterializedModuleProvider(const std::string &Filename) {
-  try {
-    std::auto_ptr<ModuleProvider> Result(getBytecodeModuleProvider(Filename));
-    if (!Result.get()) return 0;
-
-    Result->materializeModule();
-    return Result.release()->releaseModule();
-  } catch (...) {
-    return 0;
-  }
+  return ParseBytecodeFile(Filename);
 }
 
 /// loadProgram - If a program is currently loaded, unload it.  Then search






More information about the llvm-commits mailing list