- Mar 20, 2010
-
-
Ted Kremenek authored
This object controls when the warnings are executed, allowing the client code in Sema to selectively disable warnings as needed. Centralizing the logic for analysis-based warnings allows us to optimize when and how they are run. Along the way, remove the redundant logic for the 'check fall-through' warning for blocks; now the same logic is used for both blocks and functions. llvm-svn: 99085
-
David Chisnall authored
llvm-svn: 99077
-
Ted Kremenek authored
llvm-svn: 99064
-
Ted Kremenek authored
This avoids redundant diagnostics. llvm-svn: 99063
-
Daniel Dunbar authored
target when both {MACOSX,IPHONEOS}_DEPLOYMENT_TARGET were set. llvm-svn: 99055
-
Daniel Dunbar authored
llvm-svn: 99054
-
Daniel Dunbar authored
llvm-svn: 99053
-
Eric Christopher authored
llvm-svn: 99051
-
Daniel Dunbar authored
- This should be conservatively correct, we eventually should have target hooks for platforms that are less strict. llvm-svn: 99050
-
Daniel Dunbar authored
expression computation in the wrong bit-width, and end up generating a totally bogus array reference (_g0+8589934546). - This showed up on Prolangs/cdecl. llvm-svn: 99042
-
Daniel Dunbar authored
- Disable RTTI. - Disable use of __cxa_atexit. - Disable unwind tables. - Enable freestanding mode. Also, honor -fhosted correctly. <rdar://problem/7515383> C++ support: -fapple-kext not honored llvm-svn: 99041
-
Daniel Dunbar authored
expression", statistical evidence indicates it has some kind of memory error. llvm-svn: 99040
-
Daniel Dunbar authored
- So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039
-
Daniel Dunbar authored
llvm-svn: 99038
-
John McCall authored
llvm-svn: 99037
-
Eric Christopher authored
llvm-svn: 99026
-
Eric Christopher authored
llvm-svn: 99025
-
Ted Kremenek authored
is not evaluated because the receiver is nil. llvm-svn: 99024
-
Daniel Dunbar authored
Also, simplify/fix SeparateArg::render with forced join. llvm-svn: 99022
-
Eric Christopher authored
one from emmintrin.h. llvm-svn: 99020
-
Daniel Dunbar authored
platform, e.g. ppc. llvm-svn: 99016
-
John McCall authored
shadowing it in the GlobalDeclMap. Eliminates the string-uniquing requirement for mangled names, which should help C++ codegen times a little. Forces us to do string lookups instead of pointer lookups, which might hurt codegen times a little across the board. We'll see how it plays out. Removing the string-uniquing requirement implicitly fixes any bugs like PR6635 which arose from the fact that we had multiple uniquing tables for different kinds of identifiers. llvm-svn: 99012
-
- Mar 19, 2010
-
-
Douglas Gregor authored
ranges as part of the ASTContext. This code is not and was never used, but contributes ~250k to the size of the Cocoa.h precompiled header. llvm-svn: 99007
-
Douglas Gregor authored
instantiations when we have the corresponding macro definition and by removing macro definition information from our table when the macro is undefined. llvm-svn: 99004
-
Douglas Gregor authored
record (which includes all macro instantiations and definitions). As with all lay deserialization, this introduces a new external source (here, an external preprocessing record source) that loads all of the preprocessed entities prior to iterating over the entities. The preprocessing record is an optional part of the precompiled header that is disabled by default (enabled with -detailed-preprocessing-record). When the preprocessor given to the PCH writer has a preprocessing record, that record is written into the PCH file. When the PCH reader is given a PCH file that contains a preprocessing record, it will be lazily loaded (which, effectively, implicitly adds -detailed-preprocessing-record). This is the first case where we have sections of the precompiled header that are added/removed based on a compilation flag, which is unfortunate. However, this data consumes ~550k in the PCH file for Cocoa.h (out of ~9.9MB), and there is a non-trivial cost to gathering this detailed preprocessing information, so it's too expensive to turn on by default. In the future, we should investigate a better encoding of this information. llvm-svn: 99002
-
Ted Kremenek authored
llvm-svn: 98981
-
Daniel Dunbar authored
actual action. - This is easier to use, and more reliable for timing the thing this was actually meant to be useful for. llvm-svn: 98978
-
John McCall authored
mostly during conditional expressions. llvm-svn: 98975
-
Fariborz Jahanian authored
object pointer types. Fixes radar 7634850. llvm-svn: 98970
-
Douglas Gregor authored
eliminating the extra PopulatePreprocessingRecord object. This will become useful once we start writing the preprocessing record to precompiled headers. llvm-svn: 98966
-
Douglas Gregor authored
tie its creation to a CC1 flag -detailed-preprocessing-record. llvm-svn: 98963
-
Douglas Gregor authored
information, to address recent gdb failures. llvm-svn: 98959
-
John McCall authored
Fixes PR6643. Patch by Mike M! llvm-svn: 98946
-
John McCall authored
entity (if applicable) which was actually looked up. If a candidate was found via a using declaration, this is the UsingShadowDecl; otherwise, if the candidate is template specialization, this is the template; otherwise, this is the function. The point of this exercise is that "found declarations" are the entities we do access control for, not their underlying declarations. Broadly speaking, this patch fixes access control for using declarations. There is a *lot* of redundant code calling into the overload-resolution APIs; we really ought to clean that up. llvm-svn: 98945
-
Douglas Gregor authored
deserialization of precompiled headers, where the deserialization of the source location entry for a buffer (e.g., macro instantiation scratch space) would overwrite a one-element FileID cache in the source manager. When tickled at the wrong time, we would return the wrong decomposed source location and eventually cause c-index-test to crash. Found by dumb luck. It's amazing this hasn't shown up before. llvm-svn: 98940
-
John McCall authored
access to the (elevated) access of the accessed declaration, if applicable, rather than plunking that access onto the end after we've calculated the inheritance access. Also, being a friend of a derived class gives you public access to its members (subject to later modification by further inheritance); it does not simply ignore a single location of restricted inheritance. Also, when computing the best unprivileged path to a subobject, preserve the information that the worst path might be AS_none (forbidden) rather than a minimum of AS_private. llvm-svn: 98899
-
Douglas Gregor authored
rather than from the -main-file-name flag, since the source manager has proper path information. Fixes <rdar://problem/7769538>. llvm-svn: 98898
-
- Mar 18, 2010
-
-
Ted Kremenek authored
code when we are printing the name of an Objective-C method whose class has not been declared. Fixes <rdar://problem/7495713>. llvm-svn: 98874
-
Ted Kremenek authored
llvm-svn: 98873
-
Fariborz Jahanian authored
a property which is not lvalue. llvm-svn: 98848
-