projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5e5442c
)
Make the parser include the lower level error message in its own error
author
Dan Gohman
<gohman@apple.com>
Thu, 21 Jan 2010 10:15:06 +0000
(10:15 +0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 21 Jan 2010 10:15:06 +0000
(10:15 +0000)
message, to be more informative.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94072
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/Parser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/Parser.cpp
b/lib/AsmParser/Parser.cpp
index 331a23323b517214156d78b62505d3ec1ea3a334..aac4027fc57899c84296feb8ba50b706d6b3ac58 100644
(file)
--- 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;
}