mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
For PR797:
Adjust users of MappedFile to its new non-throwing interface. Note that in most cases the lazy step of just throwing after a call to MappedFile was installed. This was done in the name of incremental changes. Getting rid of the new throw statements will take adjustment of interfaces and propagation of errors to higher levels. Those changes will come in subsequent patches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,7 +19,9 @@ using namespace llvm;
|
||||
/// readFile - Load Filename
|
||||
///
|
||||
void SourceFile::readFile() {
|
||||
File.map();
|
||||
std::string ErrMsg;
|
||||
if (File.map(&ErrMsg))
|
||||
throw ErrMsg;
|
||||
}
|
||||
|
||||
/// calculateLineOffsets - Compute the LineOffset vector for the current file.
|
||||
|
Reference in New Issue
Block a user