Clarify that CALLSEQ_START..END may not be nested,
[oota-llvm.git] / lib / Debugger / SourceFile.cpp
index 23144d9ea5ddd0a7a120a220173f216be61ddfc8..820fc67f846da1832233428f7122eb6ea4121155 100644 (file)
@@ -1,12 +1,12 @@
 //===-- SourceFile.cpp - SourceFile implementation for the debugger -------===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
 //===----------------------------------------------------------------------===//
-// 
+//
 // This file implements the SourceFile class for the LLVM debugger.
 //
 //===----------------------------------------------------------------------===//
 
 using namespace llvm;
 
-/// readFile - Load Filename 
+/// 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.