mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
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:
parent
4c97bed5d9
commit
30493372f3
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user