diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-22 16:06:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-22 16:06:27 +0000 |
commit | 862796959796d69fa490107d880854739660ffad (patch) | |
tree | f4bdf140c1ad22f60b8f3837f1ec02f9121e31b3 /lib/Debugger | |
parent | 6d045fcdcd4fe83f51050f6601726d29b2689526 (diff) | |
download | external_llvm-862796959796d69fa490107d880854739660ffad.zip external_llvm-862796959796d69fa490107d880854739660ffad.tar.gz external_llvm-862796959796d69fa490107d880854739660ffad.tar.bz2 |
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
Diffstat (limited to 'lib/Debugger')
-rw-r--r-- | lib/Debugger/SourceFile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Debugger/SourceFile.cpp b/lib/Debugger/SourceFile.cpp index 222cdfa..799231f 100644 --- a/lib/Debugger/SourceFile.cpp +++ b/lib/Debugger/SourceFile.cpp @@ -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. |