diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-07-06 22:34:06 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-07-06 22:34:06 +0000 | 
| commit | 5418b0f39e8fe5b270cac32b3e0dda92865b8098 (patch) | |
| tree | 3dcf43f1718d5d23d87686e175c7346c56e94642 /llvm/lib/Debugger | |
| parent | d0a7c2bc4256599e2afee64a485123039bcdf85d (diff) | |
| download | bcm5719-llvm-5418b0f39e8fe5b270cac32b3e0dda92865b8098.tar.gz bcm5719-llvm-5418b0f39e8fe5b270cac32b3e0dda92865b8098.zip  | |
Modify the SlowOperationInformer interface to not throw exceptions.
llvm-svn: 29028
Diffstat (limited to 'llvm/lib/Debugger')
| -rw-r--r-- | llvm/lib/Debugger/ProgramInfo.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp index 3bbb0ec9362..66d38f73ca8 100644 --- a/llvm/lib/Debugger/ProgramInfo.cpp +++ b/llvm/lib/Debugger/ProgramInfo.cpp @@ -280,7 +280,8 @@ ProgramInfo::getSourceFiles(bool RequiresCompleteMap) {    // 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 @@ ProgramInfo::getSourceFunctions(bool RequiresCompleteMap) {    // 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.  | 

