[llvm-commits] [llvm] r94072 - /llvm/trunk/lib/AsmParser/Parser.cpp
Dan Gohman
gohman at apple.com
Thu Jan 21 02:15:07 PST 2010
Author: djg
Date: Thu Jan 21 04:15:06 2010
New Revision: 94072
URL: http://llvm.org/viewvc/llvm-project?rev=94072&view=rev
Log:
Make the parser include the lower level error message in its own error
message, to be more informative.
Modified:
llvm/trunk/lib/AsmParser/Parser.cpp
Modified: llvm/trunk/lib/AsmParser/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/Parser.cpp?rev=94072&r1=94071&r2=94072&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/Parser.cpp (original)
+++ llvm/trunk/lib/AsmParser/Parser.cpp Thu Jan 21 04:15:06 2010
@@ -45,7 +45,8 @@
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;
}
More information about the llvm-commits
mailing list