From: Dan Gohman Date: Thu, 21 Jan 2010 10:15:06 +0000 (+0000) Subject: Make the parser include the lower level error message in its own error X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=82b5a30724e478ff7fbfe1483f6058657202939b;p=oota-llvm.git Make the parser include the lower level error message in its own error message, to be more informative. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index 331a23323b5..aac4027fc57 100644 --- a/lib/AsmParser/Parser.cpp +++ b/lib/AsmParser/Parser.cpp @@ -45,7 +45,8 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err, MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr); if (F == 0) { Err = SMDiagnostic("", -1, -1, - "Could not open input file '" + Filename + "'", ""); + "Could not open input file '" + Filename + "': " + + ErrorStr, ""); return 0; }