Matt Beaumont-Gay
06cebfd9a5
Use tempfiles for the .o outputs.
...
llvm-svn: 124697
2011-02-01 22:44:06 +00:00
Ted Kremenek
1dd5646da0
Enable the self-init checker in scan-build.
...
llvm-svn: 124696
2011-02-01 22:36:11 +00:00
Ted Kremenek
c358d9f305
Don't warn about extraneous '()' around a comparison if it occurs within a macro.
...
Macros frequently contain extra '()' to make instantiation less error prone.
This warning was flagging a ton of times on postgresql because of its use of macros.
llvm-svn: 124695
2011-02-01 22:36:09 +00:00
Bob Wilson
59513209aa
PR9081: Split up LDM instruction with deprecated use of both LR and PC.
...
This is completely untested but pretty straightforward, so hopefully I
got it right.
llvm-svn: 124694
2011-02-01 22:30:51 +00:00
Argyrios Kyrtzidis
f4f8278c95
Don't warn for "if ((a == b))" if the parens came from a macro. Thanks to Fariborz for the hint!
...
llvm-svn: 124689
2011-02-01 22:23:56 +00:00
Matt Beaumont-Gay
29c8c8fe92
Take Bill Wendling's suggestion for structuring a couple of asserts.
...
llvm-svn: 124688
2011-02-01 22:12:50 +00:00
Devang Patel
195e69536f
Update to match changes in lldb interface.
...
llvm-svn: 124687
2011-02-01 21:47:35 +00:00
John McCall
2725aa13ea
Do the right thing for zero-initializing VLAs that don't have a zero
...
bit-pattern. It's not clear that this is actually useful given current
language restrictions.
llvm-svn: 124685
2011-02-01 21:35:06 +00:00
Nick Lewycky
edda72658a
Add updated Debian ARM include path.
...
llvm-svn: 124684
2011-02-01 21:32:14 +00:00
Douglas Gregor
304f9b0803
Provide constant strings for certain common code completion strings,
...
eliminating the need to copy those strings.
llvm-svn: 124683
2011-02-01 21:15:40 +00:00
Ted Kremenek
e57d88c6a3
Add test case for dead stores checker to not flag dead assignments to 'self' within a nested assignment.
...
llvm-svn: 124681
2011-02-01 20:45:26 +00:00
Argyrios Kyrtzidis
c1b4534e42
Fix the message. Thanks to Thomas Clement for noticing.
...
llvm-svn: 124680
2011-02-01 20:33:05 +00:00
Anton Korobeynikov
1f3bc9b5e6
Fix imm printing for logical instructions.
...
Patch by Brian G. Lucas!
llvm-svn: 124679
2011-02-01 20:22:53 +00:00
Anton Korobeynikov
3e956af404
Document the LLVM GIT mirror
...
llvm-svn: 124677
2011-02-01 20:08:28 +00:00
Argyrios Kyrtzidis
582dd68541
For "if ((a == b))" only warn if 'a' is a modifiable l-value. Caught by John!
...
llvm-svn: 124675
2011-02-01 19:32:59 +00:00
Argyrios Kyrtzidis
15a3daa189
[analyzer] Slightly improve the diagnostic message of ObjCSelfInitChecker.
...
llvm-svn: 124674
2011-02-01 19:32:55 +00:00
Douglas Gregor
b278aafbfb
Allocate CodeCompletionString and all of its components in a
...
BumpPtrAllocator, rather than manually new/delete'ing them. This
optimization also allows us to avoid allocating memory for and copying
constant strings (e.g., "return", "class").
This also required embedding the priority and availability of results
within the code completion string, to avoid extra memory allocation
within libclang.
llvm-svn: 124673
2011-02-01 19:23:04 +00:00
David Greene
433c6180ab
[AVX] Implement EnforceSmallerThan for mixed int/fp type lists. This
...
makes type checking for extract_subvector and insert_subvector more
robust and will allow stricter typechecking of more patterns in the
future.
This change handles int and fp as disjoint sets so that it will
enforce integer types to be smaller than the largest integer type and
fp types to be smaller than the largest fp type. There is no attempt
to check type sizes across the int/fp sets.
llvm-svn: 124672
2011-02-01 19:12:32 +00:00
Johnny Chen
2684ccccda
Remove the 'lldb_private::' namespace resolution operator.
...
llvm-svn: 124671
2011-02-01 18:51:48 +00:00
Johnny Chen
3d9011d6dd
Add EmulateVPOP() to the g_arm_opcodes and g_thumb_opcodes tables, which represents
...
an operation to load multiple extension registers from the stack.
llvm-svn: 124670
2011-02-01 18:35:28 +00:00
Argyrios Kyrtzidis
8b6ec6870f
Warn for "if ((a == b))" where the equality expression is needlessly wrapped inside parentheses.
...
It's highly likely that the user intended an assignment used as condition.
Addresses rdar://8848646.
llvm-svn: 124668
2011-02-01 18:24:22 +00:00
Ted Kremenek
5b4288440d
Add temporary hack to -Wuninitialize to create a separate CFG (for C++ code) that doesn't include implicit dtors.
...
Implicit dtors confuse the ad hoc path-sensitivity of UninitializedValuesV2.cpp. This isn't
the ideal solution, as it will directly impact compile time, but should significantly reduce
the noise of -Wuninitialized on some code bases.
This immediately "fixes" the false positive reported in PR 9063, although this
isn't the right fix in the long run.
llvm-svn: 124667
2011-02-01 17:43:21 +00:00
Ted Kremenek
ba357296e7
Enhance -Wuninitialized to better reason about || and &&, tracking dual dataflow facts and properly merging them.
...
Fixes PR 9076.
llvm-svn: 124666
2011-02-01 17:43:18 +00:00
Devang Patel
9a8539c4d9
Remove stale references of obsolete @llvm.dbg.variable.
...
llvm-svn: 124664
2011-02-01 17:22:12 +00:00
Douglas Gregor
fa7781384e
Implement access checking for the "delete" operator. Fixes PR9050,
...
from Alex Miller!
llvm-svn: 124663
2011-02-01 15:50:11 +00:00
Douglas Gregor
1732850158
Fix a thinko where I didn't update a consistency check for
...
PackExpansionType in the AST reader. We need more testing for variadic
templates + PCH, but this fixes PR9073.
llvm-svn: 124662
2011-02-01 15:24:58 +00:00
Douglas Gregor
dbe3927026
Basic support for -mms-bitfields, from Carl Norum!
...
llvm-svn: 124661
2011-02-01 15:15:22 +00:00
Douglas Gregor
de7a357a30
Support EFI target triple, from Carl Norum!
...
llvm-svn: 124660
2011-02-01 15:06:18 +00:00
Jay Foad
142777224c
Make SwitchInst::removeCase() more efficient.
...
llvm-svn: 124659
2011-02-01 09:22:34 +00:00
Greg Clayton
69c6bc7a9f
A missed endian fix for the linux register context for x86_64.
...
llvm-svn: 124658
2011-02-01 09:20:26 +00:00
Duncan Sands
a29ea9aa4c
Add a m_Undef pattern for convenience. This is so that code that uses
...
pattern matching can also pattern match undef, creating a more uniform
style.
llvm-svn: 124657
2011-02-01 09:06:20 +00:00
Duncan Sands
4b397fcdc2
Add a m_SignBit pattern for convenience.
...
llvm-svn: 124656
2011-02-01 08:50:33 +00:00
Duncan Sands
cf0ff030a8
Have m_One also match constant vectors for which every element is 1.
...
llvm-svn: 124655
2011-02-01 08:39:12 +00:00
John McCall
9361be98d5
Make that test case actually test something, and add another test.
...
llvm-svn: 124654
2011-02-01 08:30:38 +00:00
John McCall
04fcd0d58f
The code trying to assign a typedef to an anonymous tag declaration was
...
extremely rambunctious, both on parsing and on template instantiation.
Calm it down, fixing an internal consistency assert on anonymous enum
instantiation manglings.
llvm-svn: 124653
2011-02-01 08:20:08 +00:00
Carl Norum
ecd90b5946
Test commit - fix a double 'should' in a comment.
...
llvm-svn: 124652
2011-02-01 07:38:42 +00:00
Rafael Espindola
88ea6ab44f
Revert 124633. The linker has been told how to merge available_externally.
...
llvm-svn: 124651
2011-02-01 05:45:26 +00:00
Rafael Espindola
4a9b18d07b
Correctly merge available_externally and regular definitions when they have
...
different visibilities.
llvm-svn: 124650
2011-02-01 05:33:52 +00:00
Greg Clayton
9b62fd2fda
Added a cleanup helper object to make sure the directory that was opened with "DIR *opendir(const char *)" is closed if it is valid with a call to "int closedir (DIR *)".
...
llvm-svn: 124649
2011-02-01 05:15:22 +00:00
Greg Clayton
293d593294
Added a cleanup helper object to make sure the directory that was opened with "DIR *opendir(const char *)" is closed if it is valid with a call to "int closedir (DIR *)".
...
llvm-svn: 124648
2011-02-01 05:15:02 +00:00
Ken Dyck
49916d786a
Correct units in doxygen comment for NonVirtualSize.
...
llvm-svn: 124647
2011-02-01 02:03:12 +00:00
Ken Dyck
316d6f69bc
Convert RecordLayout::NonVirtualSize from bit units to CharUnits.
...
llvm-svn: 124646
2011-02-01 01:52:10 +00:00
Evan Cheng
dfc85ed01e
Fix bogus assert condition noticed by Csaba Raduly.
...
llvm-svn: 124645
2011-02-01 01:50:49 +00:00
Greg Clayton
f03bbe2661
Added EmulateIntruction plug-in manager support.
...
llvm-svn: 124644
2011-02-01 01:37:45 +00:00
Greg Clayton
7fb56d0a1a
Endian patch from Kirk Beitz that allows better cross platform building.
...
llvm-svn: 124643
2011-02-01 01:31:41 +00:00
Johnny Chen
a1c833769e
Add TestVirtual.py to go with test/cpp/virtual/main.cpp file, which tests
...
C++ virtual function and virtual inheritance.
llvm-svn: 124642
2011-02-01 01:23:34 +00:00
Eric Christopher
46308e666a
Reapply 124275 since the Dragonegg failure was unreproducible.
...
llvm-svn: 124641
2011-02-01 01:16:32 +00:00
Evan Cheng
2ea68db927
Fix test for non-darwin targets.
...
llvm-svn: 124640
2011-02-01 01:16:18 +00:00
Evan Cheng
d22a4a1fd6
Patches to build EFI with Clang/LLVM. By Carl Norum.
...
llvm-svn: 124639
2011-02-01 01:14:13 +00:00
Greg Clayton
c4a99bc416
Patch from Kirk Beitz that removes an unneeded include of "sys/errno.h".
...
llvm-svn: 124638
2011-02-01 01:13:32 +00:00