Jakub Staszak
772b893e5d
Remove unused field.
...
llvm-svn: 169551
2012-12-06 22:08:59 +00:00
Jakub Staszak
9525a77bf5
Remove trailing spaces.
...
llvm-svn: 169550
2012-12-06 21:57:16 +00:00
Jim Ingham
b58671eca3
Mark the "dwarf" version of the test expected fail as well as the dsym version.
...
llvm-svn: 169549
2012-12-06 21:40:51 +00:00
Matthew Curtis
4446bca53e
hexagon-toolchain.c now passes on win32
...
llvm-svn: 169548
2012-12-06 21:25:18 +00:00
Dmitri Gribenko
1c704355cf
Fix typos in CHECK lines.
...
Patch by Alexander Zinenko.
llvm-svn: 169547
2012-12-06 21:24:47 +00:00
Dmitri Gribenko
8150e9e55a
Documentation: fix typos and formatting.
...
llvm-svn: 169546
2012-12-06 21:12:35 +00:00
Matthew Curtis
1ece04413c
relax hexagon-toolchain.c even more to accomodate mingw32 targets
...
llvm-svn: 169544
2012-12-06 20:55:41 +00:00
Matthew Curtis
ed6f395c68
relax hexagon-toolchain.c CHECK to accomodate mingw32 targets
...
llvm-svn: 169543
2012-12-06 20:21:20 +00:00
Benjamin Kramer
bb09cb6433
Simplify PDiag's move assignment overload a bit, the self-move check isn't actually necessary.
...
This just empties out the diag, which is fine.
llvm-svn: 169542
2012-12-06 20:12:03 +00:00
Ted Kremenek
625add4c46
Revert "Allow modifying an ImmutableMap without canonicalizing it immediately."
...
Jordan and I discussed this, and we don't want this in the API.
llvm-svn: 169541
2012-12-06 19:41:30 +00:00
Argyrios Kyrtzidis
8c1e667b7b
Make sure to initialize the HasSkippedBody bit.
...
llvm-svn: 169540
2012-12-06 19:41:23 +00:00
Argyrios Kyrtzidis
8b71bc7d6b
[libclang] Introduce a new indexing mode where we skip function bodies
...
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
2012-12-06 19:41:16 +00:00
Ted Kremenek
cb95a8fd20
Revert "[analyzer] Aggressively cut back on the canonicalization in RegionStore."
...
Jordan and I discussed this, and we are going to do this another way.
llvm-svn: 169538
2012-12-06 19:40:32 +00:00
Evan Cheng
9ec512d768
Replace r169459 with something safer. Rather than having computeMaskedBits to
...
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
2012-12-06 19:13:27 +00:00
Benjamin Kramer
bba0a95373
Add move semantics to PartialDiagnostic, which can be very expensive to copy.
...
llvm-svn: 169535
2012-12-06 19:09:30 +00:00
Jakub Staszak
40ee5674cd
Remove unneeded function, since PR8156 was fixed over a year ago.
...
llvm-svn: 169534
2012-12-06 19:05:46 +00:00
Matthew Curtis
c91f0be499
Un-XFAIL hexagon-toolchain.c test for mingw32
...
llvm-svn: 169533
2012-12-06 19:03:09 +00:00
Jordan Rose
9163978b2c
Allow modifying an ImmutableMap without canonicalizing it immediately.
...
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
2012-12-06 19:01:24 +00:00
Argyrios Kyrtzidis
1eb71a1ba7
Add a bit on FunctionDecl/ObjCMethodDecl to indicate if there was a body
...
that was skipped by the parser.
llvm-svn: 169531
2012-12-06 18:59:10 +00:00
Jordan Rose
b10aae3fec
[analyzer] Remove isa<> followed by dyn_cast<>.
...
llvm-svn: 169530
2012-12-06 18:58:29 +00:00
Jordan Rose
642e063838
[analyzer] Remove unused fields from ExprEngine.
...
'currStmt', 'CleanedState', and 'EntryNode' were being set, but only ever
used locally.
llvm-svn: 169529
2012-12-06 18:58:26 +00:00
Jordan Rose
de606eaf18
[analyzer] Remove checks that predate the linearized CFG.
...
llvm-svn: 169528
2012-12-06 18:58:22 +00:00
Jordan Rose
ff03c1d26d
[analyzer] Simplify RetainCountChecker's handling of dead symbols.
...
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
2012-12-06 18:58:18 +00:00
Jordan Rose
5e4e61ddf9
[analyzer] Use a smarter algorithm to find the last block in an inlined call.
...
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
2012-12-06 18:58:15 +00:00
Jordan Rose
a64c6dbb98
[analyzer] Speed up ExplodedNode::Profile by avoiding copy constructors.
...
ProgramStateRef::Retain isn't free!
llvm-svn: 169525
2012-12-06 18:58:12 +00:00
Jordan Rose
1ecba4cc69
[analyzer] Use optimized assumeDual for branches.
...
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
2012-12-06 18:58:09 +00:00
Jordan Rose
5f28afc8a1
[analyzer] Aggressively cut back on the canonicalization in RegionStore.
...
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
2012-12-06 18:58:06 +00:00
Jordan Rose
047208027a
[analyzer] Remove bindExprAndLocation, which does extra work for no gain.
...
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
2012-12-06 18:58:01 +00:00
Jakub Staszak
65ca2fb9e6
Simplify code.
...
llvm-svn: 169521
2012-12-06 18:22:59 +00:00
Alexander Kornienko
578fdd8968
Clang-format: IndentCaseLabels option, proper namespace handling
...
Summary: + tests arranged in groups, as their number is already quite large.
Reviewers: djasper, klimek
Reviewed By: djasper
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D185
llvm-svn: 169520
2012-12-06 18:03:27 +00:00
Fariborz Jahanian
a14523f11c
Fixes a typo in this test.
...
llvm-svn: 169519
2012-12-06 17:50:40 +00:00
Alexander Kornienko
ecdc7507ab
Clang-format: detect unbalanced braces.
...
Reviewers: klimek, djasper
Reviewed By: klimek
CC: cfe-commits, silvas
Differential Revision: http://llvm-reviews.chandlerc.com/D176
llvm-svn: 169518
2012-12-06 17:49:17 +00:00
Matthew Curtis
e8f80a12bd
Hexagon TC: Add/improve support for small data
...
threshold, pic, pie
llvm-svn: 169517
2012-12-06 17:49:03 +00:00
Nadav Rotem
ac450eb59e
Fix a bug in the code that merges consecutive stores. Previously we did not
...
check if loads that happen in between stores alias with the first store in the
chain, only with the second store onwards.
llvm-svn: 169516
2012-12-06 17:34:13 +00:00
Daniel Malea
f899ba5f58
Merge rename fix from libcxxabi (r169402: rename class with name that clashes with GCC 4.6/4.7)
...
llvm-svn: 169515
2012-12-06 16:52:09 +00:00
Kostya Serebryany
6986550c7d
[sanitizer] POD-ify the allocator cache
...
llvm-svn: 169514
2012-12-06 16:22:04 +00:00
Matthew Curtis
ff15a1d2e5
Fix hexagon-toolchain.c test to handle versioned clang executables.
...
llvm-svn: 169513
2012-12-06 16:01:06 +00:00
Matthew Curtis
e689b0570c
Hexagon TC: Reimplement Link::ConstructJob to call
...
linker directly
Rather than calling gcc.
llvm-svn: 169512
2012-12-06 15:46:07 +00:00
Dmitry Vyukov
e3e0557f19
tsan: fix lint warning and make output tests more robust
...
llvm-svn: 169511
2012-12-06 15:42:54 +00:00
Benjamin Kramer
6928cf7826
Sema: Don't emit a warning when __func__ is used in a lambda outside of a function.
...
Fixes PR14518.
llvm-svn: 169510
2012-12-06 15:42:21 +00:00
NAKAMURA Takumi
8ccff08f76
test/Driver/hexagon-toolchain.c: Unbreak XPASS. Cygwin can be treated as unix-like system.
...
llvm-svn: 169509
2012-12-06 14:42:56 +00:00
Manuel Klimek
c844a46e77
Implements multiple parents in the parent map.
...
Previously we would match the last visited parent, which in the
case of template instantiations was the last instantiated template.
llvm-svn: 169508
2012-12-06 14:42:48 +00:00
Kostya Serebryany
6d2d30f61d
[asan/msan] one more test for 32-bit allocator + minor code simplification
...
llvm-svn: 169507
2012-12-06 14:39:41 +00:00
Kostya Serebryany
c14ae88b08
[asan/msan] add BulkAllocate to the 32-bit allocator (and a test)
...
llvm-svn: 169506
2012-12-06 14:27:32 +00:00
Matthew Curtis
f10a595eac
Hexagon TC: Move getHexagonTargetCPU from Tools.cpp to
...
ToolChains.cpp
This is in anticipation of forthcoming library path changes.
Also ...
- Fixes some inconsistencies in how the arch is passed to tools.
- Add test cases for various forms of arch flags
llvm-svn: 169505
2012-12-06 14:16:43 +00:00
NAKAMURA Takumi
e0b1b4645a
MemorySanitizer.cpp: Suppress a warning. [-Wunused-variable]
...
llvm-svn: 169504
2012-12-06 13:38:00 +00:00
Kostya Serebryany
0f67d01031
[asan/msan] refactor allocator's BulkAllocate (move to AllocatorFreeList)
...
llvm-svn: 169503
2012-12-06 13:34:11 +00:00
Dmitry Vyukov
6ee2cde066
tsan: add new file to cmake
...
llvm-svn: 169502
2012-12-06 13:32:49 +00:00
Dmitry Vyukov
72064188bc
tsan: add some more functions for java filtering
...
llvm-svn: 169501
2012-12-06 13:20:37 +00:00
Daniel Jasper
26333c3b6b
Improve clang-format's handling of unary operators.
...
llvm-svn: 169500
2012-12-06 13:16:39 +00:00