commit | 39d9841ed4c0568d4b44dfbc12ac04491f60a374 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Dec 01 22:52:33 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Dec 01 22:52:33 2009 +0000 |
tree | 8e85395573cf9e3854b100995521f7195fe2d0f2 | |
parent | 2b56b9cf7429919e1df011d8d6bee2e04f5bc22c [diff] |
pass the reason for failure up from MemoryBuffer and report it in diagnostics when we fail to open a file. This allows us to report things like: $ clang test.c -I. test.c:2:10: fatal error: error opening file './foo.h': Permission denied #include "foo.h" ^ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90276 91177308-0d34-0410-b5e6-96231b3b80d8