//
// 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.
//
//===----------------------------------------------------------------------===//
//
/// 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.