|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | This unifies the unix and windows versions of FileManager::UniqueDirContainer
and FileManager::UniqueFileContainer by using UniqueID.
We cannot just replace "struct stat" with llvm::sys::fs::file_status, since we
want to be able to construct fake ones, and file_status has different members
on unix and windows.
What the patch does is:
* Record only the information that clang is actually using.
* Use llvm::sys::fs::status instead of stat and fstat.
* Use llvm::sys::fs::UniqueID
* Delete the old windows versions of UniqueDirContainer and
UniqueFileContainer since the "unix" one now works on windows too.
llvm-svn: 187619 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | a file or directory, allowing just a stat call if a file descriptor
is not needed.
Doing just 'stat' is faster than 'open/fstat/close'.
This has the effect of cutting down system time for validating the input files of a PCH.
llvm-svn: 169831 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237 | 
| | 
| 
| 
| 
| 
| | misaligned reads throughout the file. Bump PTH format version to 10.
llvm-svn: 162076 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | (Lex to AST).
The member variable is always "LangOpts" and the member function is always "getLangOpts".
Reviewed by Chris Lattner
llvm-svn: 152536 | 
| | 
| 
| 
| 
| 
| 
| | (I was going to fix the TODO about DenseMap too, but
that would break self-host right now. See PR11922.)
llvm-svn: 149799 | 
| | 
| 
| 
| 
| 
| 
| 
| | LLVM.h imports
them into the clang namespace.
llvm-svn: 135852 | 
| | 
| 
| 
| 
| 
| | use the deprecated forms of llvm::StringMap::GetOrCreateValue().
llvm-svn: 133515 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | the file contents with it.
Allow remapping a file by specifying another filename whose contents should be loaded if the original
file gets loaded. This allows to override files without having to create & load buffers in advance.
llvm-svn: 127052 | 
| | 
| 
| 
| 
| 
| 
| 
| | The previous name was inaccurate as this token in fact appears at
the end of every preprocessing directive, not just macro definitions.
No functionality change, except for a diagnostic tweak.
llvm-svn: 126631 | 
| | 
| 
| 
| | llvm-svn: 122394 | 
| | 
| 
| 
| | llvm-svn: 122340 | 
| | 
| 
| 
| | llvm-svn: 122087 | 
| | 
| 
| 
| | llvm-svn: 120297 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | pointer that is passed down through the APIs, and make
FileSystemStatCache::get be the one that filters out
directory lookups that hit files.  This also paves the
way to have stat queries be able to return opened files.
llvm-svn: 120060 | 
| | 
| 
| 
| | llvm-svn: 120038 | 
| | 
| 
| 
| 
| 
| 
| | its own header and giving it some more structure.  No 
functionality change.
llvm-svn: 120030 | 
| | 
| 
| 
| | llvm-svn: 113074 | 
| | 
| 
| 
| 
| 
| | unbreaks using PTH with Boost (<rdar://problem/8227989>).
llvm-svn: 109484 | 
| | 
| 
| 
| 
| 
| 
| 
| | into ContentCache::getBuffer.  This allows it to produce 
diagnostics on the broken #include line instead of without a 
location.
llvm-svn: 101939 | 
| | 
| 
| 
| | llvm-svn: 98817 | 
| | 
| 
| 
| | llvm-svn: 98816 | 
| | 
| 
| 
| 
| 
| | source file has been changed. Handle that failure more gracefully.
llvm-svn: 98727 | 
| | 
| 
| 
| 
| 
| | simplifying the SourceManager interfaces somewhat.
llvm-svn: 98598 | 
| | 
| 
| 
| | llvm-svn: 98488 | 
| | 
| 
| 
| | llvm-svn: 98480 | 
| | 
| 
| 
| | llvm-svn: 98478 | 
| | 
| 
| 
| | llvm-svn: 98472 | 
| | 
| 
| 
| | llvm-svn: 98469 | 
| | 
| 
| 
| 
| 
| | LookUpIdentifierInfo() will automatically do
llvm-svn: 98435 | 
| | 
| 
| 
| | llvm-svn: 97916 | 
| | 
| 
| 
| | llvm-svn: 97810 | 
| | 
| 
| 
| | llvm-svn: 97569 | 
| | 
| 
| 
| | llvm-svn: 93966 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | stat a file but where mmaping it fails.  In this case, we emit an
error like:
t.c:1:10: fatal error: error opening file '../../foo.h'
instead of "cannot find file".
llvm-svn: 90110 | 
| | 
| 
| 
| | llvm-svn: 90033 | 
| | 
| 
| 
| 
| 
| | are updated.
llvm-svn: 84447 | 
| | 
| 
| 
| | llvm-svn: 84436 | 
| | 
| 
| 
| | llvm-svn: 84360 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | only supporting a single stat cache. The immediate benefit of this
change is that we can now generate a PCH/AST file when including
another PCH file; in the future, the chain of stat caches will likely
be useful with multiple levels of PCH files.
llvm-svn: 84263 | 
| | 
| 
| 
| | llvm-svn: 81346 | 
| | 
| 
| 
| | llvm-svn: 79868 | 
| | 
| 
| 
| | llvm-svn: 79854 | 
|  | files to lib/Frontend.
llvm-svn: 72099 |