- Aug 04, 2010
-
-
John McCall authored
Apply hidden visibility to most RTTI; libstdc++ does not rely on exact pointer equality for the type info (just the type info names). Apply the same optimization to RTTI that we do to vtables. Fixes PR5962. llvm-svn: 110192
-
Jordy Rose authored
Change the checker callback cache in GRExprEngine to be more compact (and IMHO a little easier to understand), and add the same sort of caching for EvalAssume (tied for least-used callback), mostly as proof-of-concept. Before we go further with these, we should figure out a way to reuse the visit-and-cache code in CheckerVisit. llvm-svn: 110191
-
John McCall authored
haven't been explicitly instantiated. llvm-svn: 110189
-
John McCall authored
ObjC exceptions: - don't enter a try for the catch blocks unless there's a finally - put the setjmp buffer in the locals set for liveness reasons - dump the sync object into an alloca in the locals set for liveness reasons Some of this can go away if the backend starts to properly calculate liveness in the presence of setjmp (which would also be a *much* stabler solution). llvm-svn: 110188
-
Douglas Gregor authored
short "cooling off" period (defaulting to 5 reparses) before trying to build a precompiled preamble again. Previously, if we failed to build the precompiled preamble at any time, we just gave up the whole charade any never tried again. llvm-svn: 110187
-
John McCall authored
a declaration. llvm-svn: 110175
-
John McCall authored
delete for a virtual destructor. Diagnose ambiguities. Fixes PR7803. llvm-svn: 110173
-
John McCall authored
mark it nounwind based on whether it contains any non-nounwind calls. <rdar://problem/8087431> llvm-svn: 110163
-
Chris Lattner authored
llvm-svn: 110161
-
- Aug 03, 2010
-
-
Sebastian Redl authored
Store all selectors in the selector hash table instead of only those from the method pool. llvm-svn: 110158
-
Nate Begeman authored
llvm-svn: 110153
-
Tom Care authored
- Reporting now uses getUnreachableStmt which returns the Stmt* we should report - Indexing of reachable and visited blocks now use CFGBlock ID's instead of pointers - The CFG used in the unreachable search is now the unoptimized CFG - Added 'Dead code' category to warnings - Removed obsolete function getCondition - Simplified false positive detection based on properties of FindUnreachableEntryPoints llvm-svn: 110148
-
Jordy Rose authored
Makes GRState::makeWithStore private, to encourage clients to make store changes through GRState instead of directly accessing the StoreManager. Also adds cover methods for InvalidateRegion(s) and EnterStackFrame to GRState. This is in preparation for proposed region change notifications. No functionality change. llvm-svn: 110137
-
Douglas Gregor authored
declarations that we saw when creating the precompiled preamble, and provide those declarations in addition to the declarations parsed in the main source file when traversing top-level declarations. This makes the use of precompiled preambles a pure optimization, rather than changing the semantics of the parsed translation unit. llvm-svn: 110131
-
Eli Friedman authored
llvm-svn: 110126
-
Argyrios Kyrtzidis authored
Apart from storing/retrieving the previous redeclaration from PCH, also store/retrieve the most recent redeclaration. That way we are sure that the full redeclarations chain is loaded. When using chained PCHs, first declarations point to the most recent redeclarations in the same PCH. To address this use a REDECLS_UPDATE_LATEST record block to keep track of which first declarations need to point to a most recent redeclaration in another PCH. llvm-svn: 110125
-
Argyrios Kyrtzidis authored
llvm-svn: 110123
-
Argyrios Kyrtzidis authored
llvm-svn: 110122
-
Chris Lattner authored
llvm-svn: 110116
-
Daniel Dunbar authored
assembler. - Fixes PR6218, hopefully. llvm-svn: 110111
-
Douglas Gregor authored
it while generating precompiled preambles. No functionality change. llvm-svn: 110108
-
John McCall authored
llvm-svn: 110107
-
Zhongxing Xu authored
shouldn't put restrictions in store manager. llvm-svn: 110106
-
Zhongxing Xu authored
llvm-svn: 110102
-
Tom Care authored
Changed GRExprEngine to pass down a reference to itself when checkers are doing postanalysis. This allows the checker to gather information about the state of the engine when it has finished. - Exposed the worklist and BlockAborted flag in GRCoreEngine - Changed postanalysis checkers to use the new infrastructure llvm-svn: 110095
-
Ted Kremenek authored
Add -cc1 option '-unoptimized-cfg' to toggle using a CFG (for static analysis) that doesn't prune CFG edges. llvm-svn: 110087
-
Ted Kremenek authored
CFG without any edges pruned out because of trivially solvable conditions (e.g., 'if (0)'). llvm-svn: 110085
-
John McCall authored
purposes of the jump checker. Also extend Ted's iteration fix to labels. Fixes PR7789. llvm-svn: 110082
-
Sebastian Redl authored
llvm-svn: 110078
-
Ted Kremenek authored
Fix another case (this time in JumpScopeChecker) where walking deeply nested CaseStmts can blow out the stack. Fixes <rdar://problem/8125165>. llvm-svn: 110071
-
- Aug 02, 2010
-
-
Ted Kremenek authored
calls when the enclosing object had retain/release state. Fixes <rdar://problem/8261992>. llvm-svn: 110068
-
John McCall authored
initializations now. llvm-svn: 110063
-
Douglas Gregor authored
creating the preamble and "replay" them when reusing the preamble. Also, fix a thinko in the copying of the preamble when building the precompiled preamble. llvm-svn: 110061
-
Ted Kremenek authored
lookups in the hashtable. llvm-svn: 110059
-
Sebastian Redl authored
Query only the latest version of an identifier in the PCH chain. Make sure this version holds the entire declaration chain. This is a much saner solution than trying to merge the info from all elements, and makes redeclarations work properly. Expand the declarations test case to cover more compliated cases. llvm-svn: 110052
-
Sebastian Redl authored
Remove mutable data on TagType and InjectedClassNameType, by instead walking the declaration chain in search of a definition. This is necessary for a sane chained PCH implementation. No observable performance change on Carbon.h syntax-only, and bootstraps cleanly. llvm-svn: 110051
-
Fariborz Jahanian authored
for radar 8258797. llvm-svn: 110047
-
Argyrios Kyrtzidis authored
Read/write in PCH Sema's StdNamespace and StdBadAlloc and use a LazyDeclPtr for them that will deserialize them when needed. llvm-svn: 110031
-
Argyrios Kyrtzidis authored
No functionality change. llvm-svn: 110030
-
Daniel Dunbar authored
chain construction. llvm-svn: 110028
-