For PR797:

Final remove of exception handling from this file. lib/System can no longer
throw exceptions so there's no need for try/catch blocks here.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-08-23 20:37:59 +00:00
parent 4c97bed5d9
commit 30493372f3

View File

@ -164,7 +164,6 @@ int llvm::DiffFilesWithTolerance(const sys::Path &FileA,
if ((A_size == 0 || B_size == 0))
return 1;
try {
// Now its safe to mmap the files into memory becasue both files
// have a non-zero size.
sys::MappedFile F1;
@ -250,11 +249,4 @@ int llvm::DiffFilesWithTolerance(const sys::Path &FileA,
if (OrigFile2Start != File2Start)
delete[] (File2Start-1); // Back up past null byte
return CompareFailed;
} catch (const std::string &Msg) {
if (Error) *Error = Msg;
return 2;
} catch (...) {
*Error = "Unknown Exception Occurred";
return 2;
}
}