- Feb 20, 2011
-
-
Richard Smith authored
llvm-svn: 126063
-
Peter Collingbourne authored
llvm-svn: 126060
-
- Feb 19, 2011
-
-
Rafael Espindola authored
llvm-svn: 126050
-
- Feb 18, 2011
-
-
Douglas Gregor authored
that was ignored in a few places (most notably, code completion). Introduce Selector::getNameForSlot() for the common case where we only care about the name. Audit all uses of getIdentifierInfoForSlot(), switching many over to getNameForSlot(), fixing a few crashers. Fixed <rdar://problem/8939352>, a code-completion crasher. llvm-svn: 125977
-
NAKAMURA Takumi authored
TCE target has some too strict alignment rules (that the HW really does not require, but which caused problems elsewhere) for data types and an ABI change was decided. llvm-svn: 125833
-
Peter Collingbourne authored
llvm-svn: 125819
-
- Feb 17, 2011
-
-
NAKAMURA Takumi authored
No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. llvm-svn: 125742
-
- Feb 16, 2011
-
-
Douglas Gregor authored
Fix a thinko with llvm::Optional, which is clearly the most dangerous class template in the universe llvm-svn: 125679
-
- Feb 14, 2011
-
-
Peter Collingbourne authored
FP_CONTRACT pragmas. Patch originally by ARM. llvm-svn: 125475
-
- Feb 12, 2011
-
-
Jeffrey Yasskin authored
I also sorted the tools/driver dependencies since their order no longer matters. llvm-svn: 125417
-
- Feb 11, 2011
-
-
Zhanyong Wan authored
Reviewed by dgregor. llvm-svn: 125407
-
Zhanyong Wan authored
This patch contains: - making some of the existing comments more accurate in the presence of virtual files/directories. - renaming some private data members of FileManager to match their roles better. - creating 'DirectorEntry's for the parent directories of virtual files, such that we can tell whether two virtual files are from the same directory. This is useful for injecting virtual files whose directories don't exist in the real file system. - minor clean-ups and adding comments for class FileManager::UniqueDirContainer and FileManager::UniqueFileContainer. - adding statistics on virtual files to FileManager::PrintStats(). - adding unit tests to verify the existing and new behavior of FileManager. llvm-svn: 125384
-
Douglas Gregor authored
contents when it's safe. I just *love* C++ some days. llvm-svn: 125378
-
- Feb 10, 2011
-
-
Douglas Gregor authored
AST/PCH files more lazy: - Don't preload all of the file source-location entries when reading the AST file. Instead, load them lazily, when needed. - Only look up header-search information (whether a header was already #import'd, how many times it's been included, etc.) when it's needed by the preprocessor, rather than pre-populating it. Previously, we would pre-load all of the file source-location entries, which also populated the header-search information structure. This was a relatively minor performance issue, since we would end up stat()'ing all of the headers stored within a AST/PCH file when the AST/PCH file was loaded. In the normal PCH use case, the stat()s were cached, so the cost--of preloading ~860 source-location entries in the Cocoa.h case---was relatively low. However, the recent optimization that replaced stat+open with open+fstat turned this into a major problem, since the preloading of source-location entries would now end up opening those files. Worse, those files wouldn't be closed until the file manager was destroyed, so just opening a Cocoa.h PCH file would hold on to ~860 file descriptors, and it was easy to blow through the process's limit on the number of open file descriptors. By eliminating the preloading of these files, we neither open nor stat the headers stored in the PCH/AST file until they're actually needed for something. Concretely, we went from *** HeaderSearch Stats: 835 files tracked. 364 #import/#pragma once files. 823 included exactly once. 6 max times a file is included. 3 #include/#include_next/#import. 0 #includes skipped due to the multi-include optimization. 1 framework lookups. 0 subframework lookups. *** Source Manager Stats: 835 files mapped, 3 mem buffers mapped. 37460 SLocEntry's allocated, 11215575B of Sloc address space used. 62 bytes of files mapped, 0 files with line #'s computed. with a trivial program that uses a chained PCH including a Cocoa PCH to *** HeaderSearch Stats: 4 files tracked. 1 #import/#pragma once files. 3 included exactly once. 2 max times a file is included. 3 #include/#include_next/#import. 0 #includes skipped due to the multi-include optimization. 1 framework lookups. 0 subframework lookups. *** Source Manager Stats: 3 files mapped, 3 mem buffers mapped. 37460 SLocEntry's allocated, 11215575B of Sloc address space used. 62 bytes of files mapped, 0 files with line #'s computed. for the same program. llvm-svn: 125286
-
Roman Divacky authored
llvm-svn: 125282
-
NAKAMURA Takumi authored
llvm-svn: 125275
-
- Feb 08, 2011
-
-
Rafael Espindola authored
llvm-svn: 125129
-
- Feb 05, 2011
-
-
Douglas Gregor authored
overridden via remapping. Thus, when we create a "virtual" file in the file manager, we still stat() the real file that lives behind it so that we can provide proper uniquing based on inodes. This helps keep the file manager much more consistent. To take advantage of this when reparsing files in libclang, we disable the use of the stat() cache when reparsing or performing code completion, since the stat() cache is very likely to be out of date in this use case. llvm-svn: 124971
-
- Feb 04, 2011
-
-
Douglas Gregor authored
or source locations that refer into a macro instantiation, delete all of the Fix-Its on that diagnostic. llvm-svn: 124833
-
- Feb 03, 2011
-
-
Douglas Gregor authored
whose inode has changed since the file was first created and that is being seen through a different path name (e.g., due to symlinks or relative path elements), such that its FileEntry pointer doesn't match a known FileEntry pointer. Since this requires a system call (to stat()), we only perform this deeper checking if we can't find the file by comparing FileEntry pointers. Also, add a micro-optimization where we don't bother to compute line numbers when given the location (1, 1). This improves the efficiency of clang_getLocationForOffset(). llvm-svn: 124800
-
Rafael Espindola authored
links. llvm-svn: 124776
-
Douglas Gregor authored
redundant searches in the string. No functionality change. llvm-svn: 124760
-
- Feb 02, 2011
-
-
Douglas Gregor authored
on that name. Canonicalization eliminates silliness such as "." and "foo/.." that breaks the uniquing of files in the presence of virtual files or files whose inode numbers have changed during parsing/re-parsing. c-index-test isn't able to create this crazy situation, so I've resorted to testing outside of the Clang tree. Fixes <rdar://problem/8928220>. Note that this hackery will go away once we have a real virtual file system on which we can layer FileManager; the virtual-files hack is showing cracks. llvm-svn: 124754
-
- Feb 01, 2011
-
-
Douglas Gregor authored
llvm-svn: 124660
-
- Jan 31, 2011
-
-
Douglas Gregor authored
the disappearance/alteration of files. llvm-svn: 124616
-
Douglas Gregor authored
client. Fixes a libclang leak. llvm-svn: 124614
-
- Jan 27, 2011
-
-
Douglas Gregor authored
llvm-svn: 124441
-
Axel Naumann authored
TextDiagnosticPrinter.cpp: Show diagnostics as far as possible even with invalid PresomedLoc, instead of just silencing it. FileManager.cpp: Allow virtual files in nonexistent directories. FileManager.cpp: Close FileDescriptor for virtual files that correspond to actual files. FileManager.cpp: Enable virtual files to be created even for files that were flagged as NON_EXISTENT_FILE, e.g. by a prior (unsuccessful) addFile(). ASTReader.cpp: Read a PCH even if the original source files cannot be found. Add a test for reading a PCH of a file that has been removed and diagnostics referencing that file. llvm-svn: 124374
-
- Jan 17, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 123691
-
NAKAMURA Takumi authored
It should be defined as-is. Some headers would detect existence of __declspec and use one. llvm-svn: 123690
-
NAKAMURA Takumi authored
llvm-svn: 123689
-
- Jan 14, 2011
-
-
Argyrios Kyrtzidis authored
Addresses rdar://8435969&8852495 llvm-svn: 123462
-
- Jan 12, 2011
-
-
Douglas Gregor authored
llvm-svn: 123320
-
- Jan 07, 2011
-
-
Fariborz Jahanian authored
Fix an unexpected hickup caused by exceeding size of generated table (and a misleading comment). Improve on help message for -fapple-kext. llvm-svn: 123003
-
- Jan 06, 2011
-
-
Bob Wilson authored
Patch by Sylvère Teissier. llvm-svn: 122965
-
Roman Divacky authored
Fix the width and align of bool type on Darwin to be 32bits while keeping it 8 everywhere else. Change the definition of va_list to default to SV4 ABI one and let darwin subtarget override this. Both changes submitted by Nathan Whitehorn and reviewed by Rafael Espindola. llvm-svn: 122956
-
- Dec 29, 2010
-
-
Roman Divacky authored
llvm-svn: 122629
-
- Dec 26, 2010
-
-
Chris Lattner authored
16-bits in size. Implement this by splitting WChar into two enums, like we have for char. This fixes a miscompmilation of XULRunner, PR8856. llvm-svn: 122558
-
- Dec 24, 2010
-
-
Argyrios Kyrtzidis authored
Handle locations coming from macro instantiations properly in SourceManager::isBeforeInTranslationUnit(). Fixes rdar://8790245 and http://llvm.org/PR8821. llvm-svn: 122536
-
- Dec 21, 2010
-
-
Douglas Gregor authored
inconsistent with the type that the builtin *should* have, forget about the builtin altogether: we don't want subsequence analyses, CodeGen, etc., to think that we have a proper builtin function. C is protected from errors here because it allows one to use a library builtin without having a declaration, and detects inconsistent (re-)declarations of builtins during declaration merging. C++ was unprotected, and therefore would crash. Fixes PR8839. llvm-svn: 122351
-