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

Chris Lattner lattner at cs.uiuc.edu
Thu Jul 6 15:34:20 PDT 2006



Changes in directory llvm/lib/Debugger:

ProgramInfo.cpp updated: 1.15 -> 1.16
---
Log message:

Modify the SlowOperationInformer interface to not throw exceptions.


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

 ProgramInfo.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/Debugger/ProgramInfo.cpp
diff -u llvm/lib/Debugger/ProgramInfo.cpp:1.15 llvm/lib/Debugger/ProgramInfo.cpp:1.16
--- llvm/lib/Debugger/ProgramInfo.cpp:1.15	Thu Mar 23 12:06:46 2006
+++ llvm/lib/Debugger/ProgramInfo.cpp	Thu Jul  6 17:34:06 2006
@@ -280,7 +280,8 @@
   // mapping.
   for (unsigned i = 0, e = TranslationUnits.size(); i != e; ++i) {
     getSourceFile(TranslationUnits[i]);
-    SOI.progress(i+1, e);
+    if (SOI.progress(i+1, e))
+      throw "While building source files index, operation cancelled.";
   }
 
   // Ok, if we got this far, then we indexed the whole program.
@@ -361,7 +362,8 @@
   // Loop over all of the functions found, building the SourceFunctions mapping.
   for (unsigned i = 0, e = Functions.size(); i != e; ++i) {
     getFunction(Functions[i]);
-    SOI.progress(i+1, e);
+    if (SOI.progress(i+1, e))
+      throw "While functions index, operation cancelled.";
   }
 
   // Ok, if we got this far, then we indexed the whole program.






More information about the llvm-commits mailing list