- Dec 07, 2012
-
-
Jordan Rose authored
Suggested by David Blaikie. ExplodedNode, CallEvent, and CheckerContext all hang onto their ProgramState, so the accessors can return a reference to the internal state rather than preemptively copying it. This helps avoid temporary ProgramStateRefs, though local variables will still (correctly) do an extra retain and release. llvm-svn: 169563
-
Logan Chien authored
and will break the build on buildbot. llvm-svn: 169562
-
Matt Beaumont-Gay authored
decide what pattern we want to follow in the future. llvm-svn: 169561
-
rdar://problem/12827789Greg Clayton authored
Be sure to load dSYM files when the object file is in memory only. llvm-svn: 169560
-
Alexey Samsonov authored
1) don't delete gtest-all.cc (which is used to gather all gtest source files in a single file) 2) make including LLVMSupport headers optional (on by default). Sanitizer tools may want to use their own versions of googletest compiled with specific flags, instead of the common googletest library used for all other LLVM/Clang unittests. llvm-svn: 169559
-
Argyrios Kyrtzidis authored
llvm-svn: 169558
-
Logan Chien authored
* Look for i686-linux-android under <sysroot>/lib/gcc. * This patch also slightly enhance the test suite for Android GCC toolchain detection. llvm-svn: 169557
-
rdar://problem/12820334Greg Clayton authored
I modified the "Args::StringtoAddress(...)" function to be able to evaluate address expressions. This is now used for any command line arguments or options that takes addresses like: memory read <addr> [<end-addr>] memory write <addr> breakpoint set --address <addr> disassemble --start-address <addr> --end-address <addr> It calls the expression parser to evaluate the address expression and will also work around the issue where the compiler doesn't like to add offsets to function pointers (which is what happens when you try to evaluate "main + 12"). So there is a temp fix in the Args::StringtoAddress() to work around this until we can get special compiler support for debug expressions with function pointers. llvm-svn: 169556
-
Richard Smith authored
llvm-svn: 169555
-
Fariborz Jahanian authored
llvm-svn: 169554
-
Pedro Artigas authored
fixed valgrind issues of prior commit, this change applies r169456 changes back to the tree with fixes. on darwin no valgrind issues exist in the tests that used to fail. original change description: change MCContext to work on the doInitialization/doFinalization model reviewed by Evan Cheng <evan.cheng@apple.com> llvm-svn: 169553
-
Jason Molenda authored
llvm-svn: 169552
-
Jakub Staszak authored
llvm-svn: 169551
-
Jakub Staszak authored
llvm-svn: 169550
-
Jim Ingham authored
llvm-svn: 169549
-
Matthew Curtis authored
llvm-svn: 169548
-
Dmitri Gribenko authored
Patch by Alexander Zinenko. llvm-svn: 169547
-
Dmitri Gribenko authored
llvm-svn: 169546
-
Matthew Curtis authored
llvm-svn: 169544
-
Matthew Curtis authored
llvm-svn: 169543
-
Benjamin Kramer authored
This just empties out the diag, which is fine. llvm-svn: 169542
-
Ted Kremenek authored
Jordan and I discussed this, and we don't want this in the API. llvm-svn: 169541
-
Argyrios Kyrtzidis authored
llvm-svn: 169540
-
Argyrios Kyrtzidis authored
that were already parsed in the same "indexing session". An indexing session is defined as using the same CXIndexAction object for multiple clang_indexSourceFile calls. Passing CXIndexOpt_SkipParsedBodiesInSession as an indexing option will enable the mode where we try to skip bodies that were already parsed in another translation unit. If a function's body was skipped, the "flags" field in the CXIdxDeclInfo structure will have "CXIdxDeclFlag_Skipped" bit was set. llvm-svn: 169539
-
Ted Kremenek authored
Jordan and I discussed this, and we are going to do this another way. llvm-svn: 169538
-
Evan Cheng authored
understand target implementation of any_extend / extload, just generate zero_extend in place of any_extend for liveouts when the target knows the zero_extend will be implicit (e.g. ARM ldrb / ldrh) or folded (e.g. x86 movz). rdar://12771555 llvm-svn: 169536
-
Benjamin Kramer authored
llvm-svn: 169535
-
Jakub Staszak authored
llvm-svn: 169534
-
Matthew Curtis authored
llvm-svn: 169533
-
Jordan Rose authored
This is an alternative to the ImmutableMapRef interface where a factory should still be canonicalizing by default, but in certain cases an improvement can be made by delaying the canonicalization. llvm-svn: 169532
-
Argyrios Kyrtzidis authored
that was skipped by the parser. llvm-svn: 169531
-
Jordan Rose authored
llvm-svn: 169530
-
Jordan Rose authored
'currStmt', 'CleanedState', and 'EntryNode' were being set, but only ever used locally. llvm-svn: 169529
-
Jordan Rose authored
llvm-svn: 169528
-
Jordan Rose authored
Previously we made three passes over the set of dead symbols, and removed them from the state /twice/. Now we combine the autorelease pass and the symbol death pass, and only have to remove the bindings for the symbols that leaked. llvm-svn: 169527
-
Jordan Rose authored
Previously we would search for the last statement, then back up to the entrance of the block that contained that statement. Now, while we're scanning for the statement, we just keep track of which blocks are being exited (in reverse order). llvm-svn: 169526
-
Jordan Rose authored
ProgramStateRef::Retain isn't free! llvm-svn: 169525
-
Jordan Rose authored
This doesn't seem to make much of a difference in practice, but it does have the potential to avoid a trip through the constraint manager. llvm-svn: 169524
-
Jordan Rose authored
Whenever we touch a single bindings cluster multiple times, we can delay canonicalizing it until the final access. This has some interesting implications, in particular that we shouldn't remove an /empty/ cluster from the top-level map until canonicalization. This is good for a 2% speedup or so on the test case in <rdar://problem/12810842> llvm-svn: 169523
-
Jordan Rose authored
This feature was probably intended to improve diagnostics, but was currently only used when dumping the Environment. It shows what location a given value was loaded from, e.g. when evaluating an LValueToRValue cast. llvm-svn: 169522
-