- Sep 01, 2011
-
-
Douglas Gregor authored
include guards don't show up as macro definitions in every translation unit that imports a module. Macro definitions can, however, be exported with the intentionally-ugly #__export_macro__ directive. Implement this feature by not even bothering to serialize non-exported macros to a module, because clients of that module need not (should not) know that these macros even exist. llvm-svn: 138943
-
- Aug 30, 2011
-
-
Ivan Krasin authored
- wrong alignment for double (it was 4, but 8 is desired), - added checks for _REENTRANT define, - fixed the issue that defines were not tested (because the check for inside #ifdef). llvm-svn: 138775
-
- Aug 29, 2011
-
-
Nico Weber authored
This matches gcc's logic. Second half of PR10661. llvm-svn: 138730
-
- Aug 26, 2011
-
-
Ivan Krasin authored
llvm-svn: 138607
-
- Aug 24, 2011
-
-
Ivan Krasin authored
llvm-svn: 138489
-
Ivan Krasin authored
llvm-svn: 138470
-
- Aug 23, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 138381
-
Argyrios Kyrtzidis authored
to increased calls to SourceManager::getFileID. (rdar://9992664) Use a slightly different approach that is more efficient both in terms of speed (no extra getFileID calls) and in SLocEntries reduction. Comparing pre-r138129 and this patch we get: For compiling SemaExpr.cpp reduction of SLocEntries by 26%. For the boost enum library: -SLocEntries -34% (note that this was -5% for r138129) -Memory consumption -50% -PCH size -31% Reduced SLocEntries also benefit the hot function SourceManager::getFileID, evident by the reduced "FileID scans". llvm-svn: 138380
-
Argyrios Kyrtzidis authored
llvm-svn: 138375
-
- Aug 22, 2011
-
-
Argyrios Kyrtzidis authored
Currently getMacroArgExpandedLocation is very inefficient and for the case of a location pointing at the main file it will end up checking almost all of the SLocEntries. Make it faster: -Use a map of macro argument chunks to their expanded source location. The map is for a single source file, it's stored in the file's ContentCache and lazily computed, like the source lines cache. -In SLocEntry's FileInfo add an 'unsigned NumCreatedFIDs' field that keeps track of the number of FileIDs (files and macros) that were created during preprocessing of that particular file SLocEntry. This is useful when computing the macro argument map in skipping included files while scanning for macro arg FileIDs that lexed from a specific source file. Due to padding, the new field does not increase the size of SLocEntry. llvm-svn: 138225
-
- Aug 20, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 138127
-
- Aug 18, 2011
-
-
Ted Kremenek authored
Currently this includes -pedantic warnings as well; we'll need to consider whether these should be included. This works as expected with -Werror. Test cases were added to Sema/warn-unused-parameters.c, but they should probably be broken off into their own test file. llvm-svn: 137910
-
Bruno Cardoso Lopes authored
llvm-svn: 137905
-
- Aug 17, 2011
-
-
Douglas Gregor authored
messages. Fi from David Blaikie, tests from Nikola Smiljanic! llvm-svn: 137851
-
Argyrios Kyrtzidis authored
If we pass it a source location that points inside a function macro argument, the returned location will be the macro location in which the argument was expanded. If a macro argument is used multiple times, the expanded location will be at the first expansion of the argument. e.g. MY_MACRO(foo); ^ Passing a file location pointing at 'foo', will yield a macro location where 'foo' was expanded into. Make SourceManager::getLocation call getMacroArgExpandedLocation as well. llvm-svn: 137794
-
Argyrios Kyrtzidis authored
llvm-svn: 137793
-
- Aug 13, 2011
-
-
Jeffrey Yasskin authored
llvm-svn: 137552
-
- Aug 09, 2011
-
-
Ted Kremenek authored
Provide diag_iterator for iterating over the built-in diagnostic IDs/names in the internal table of DiagnosticIDs. llvm-svn: 137108
-
- Aug 04, 2011
-
-
Chad Rosier authored
llvm-svn: 136892
-
Chad Rosier authored
alignment. This fixes cases where the anonymous bitfield is followed by a non-bitfield member. E.g., struct t4 { int foo : 1; long : 0; char bar; }; Part of rdar://9859156 llvm-svn: 136858
-
- Jul 31, 2011
-
-
Benjamin Kramer authored
llvm-svn: 136581
-
- Jul 29, 2011
-
-
Eric Christopher authored
Fixes rdar://9866494 llvm-svn: 136524
-
Argyrios Kyrtzidis authored
DiagnosticErrorTraps can be composed (e.g. a trap inside another trap). Fixes http://llvm.org/PR10462 & rdar://9852007. llvm-svn: 136447
-
- Jul 27, 2011
-
-
Ted Kremenek authored
llvm-svn: 136236
-
Ted Kremenek authored
llvm-svn: 136189
-
- Jul 26, 2011
-
-
Chad Rosier authored
the preferred alignment. Thus, revert r135934, r135935, and r135940. llvm-svn: 136062
-
Chandler Carruth authored
'expansion' rather than 'instantiation' for macro source locations. llvm-svn: 136058
-
Chandler Carruth authored
etc. With this I think essentially all of the SourceManager APIs are converted. Comments and random other bits of cleanup should be all thats left. llvm-svn: 136057
-
Chandler Carruth authored
and various other 'expansion' based terms. I've tried to reformat where appropriate and catch as many references in comments but I'm going to do several more passes. Also I've tried to expand parameter names to be more clear where appropriate. llvm-svn: 136056
-
Chandler Carruth authored
llvm-svn: 136054
-
Chandler Carruth authored
to isMacroArgExpansion. llvm-svn: 136053
-
- Jul 25, 2011
-
-
Chandler Carruth authored
SourceManager and FullSourceLoc. llvm-svn: 135969
-
Chandler Carruth authored
SourceManager and FullSourceLoc. llvm-svn: 135965
-
Chandler Carruth authored
llvm-svn: 135962
-
Chandler Carruth authored
llvm-svn: 135961
-
Chandler Carruth authored
getImmediateExpansionRange. llvm-svn: 135960
-
Chad Rosier authored
FIXME: Override "preferred align" for double and long long for ARM apcs-gnu ABI. Also part of rdar://9802874 llvm-svn: 135940
-
Chandler Carruth authored
llvm-svn: 135915
-
Chandler Carruth authored
FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
-
- Jul 23, 2011
-
-
Chris Lattner authored
llvm-svn: 135855
-