Ted Kremenek
06e2474d51
Bump up IdentifierInfo::ObjCOrBuiltinID to use 11 bits instead of 10. Fixes PR 9231.
...
Apparently we can blow out the number of builtin IDs on FreeBSD with only 10 bits.
llvm-svn: 125713
2011-02-17 02:43:00 +00:00
Ted Kremenek
42ec914ff8
Begin overhaul of scan-build/ccc-analyzer's handling of checker options.
...
We now rely on 'clang --analyze' to provide the default set of checkers. We're
still working on the new '-analyzer-checker <checker>' interface, and once
that's ready we'll wire it up to scan-build.
llvm-svn: 125712
2011-02-17 02:28:30 +00:00
Chris Lattner
5592071768
preserve NUW/NSW when transforming add x,x
...
llvm-svn: 125711
2011-02-17 02:23:02 +00:00
Chris Lattner
0ad64291d8
filecheckize
...
llvm-svn: 125710
2011-02-17 02:21:03 +00:00
Nick Lewycky
b302f8dae6
Fix thinko, basic blocks are SESE. The exits may have many edges though.
...
llvm-svn: 125709
2011-02-17 02:19:22 +00:00
Ted Kremenek
378313944f
Disable default synthesized properties until we can properly re-evaluate the feature.
...
llvm-svn: 125708
2011-02-17 02:17:56 +00:00
Chris Lattner
5df2a4e8df
fix clang -MM output to escape spaces in filenames. This seems to be
...
the only character that GCC escapes. PR9224.
llvm-svn: 125707
2011-02-17 02:14:49 +00:00
Greg Clayton
4796c4feb1
Modified version of Marco Minutoli's host arch patch.
...
llvm-svn: 125706
2011-02-17 02:05:38 +00:00
Chris Lattner
ffda452fbf
update this test now that reassociate isn't stripping nsw's pointlessly.
...
llvm-svn: 125705
2011-02-17 02:02:42 +00:00
Ken Dyck
02ced6fd19
Convert MaxFieldAlignment to CharUnits from bits. No change in functionality
...
intended.
llvm-svn: 125704
2011-02-17 01:49:42 +00:00
Johnny Chen
e19e4fc8dc
Add comment for the helper method WriteCoreRegisterWithFlags().
...
llvm-svn: 125703
2011-02-17 01:49:00 +00:00
Chris Lattner
727eebee58
add some notes on compares + binops. Remove redundant entries.
...
llvm-svn: 125702
2011-02-17 01:43:46 +00:00
Johnny Chen
0c64b5bbb6
Refactoring. Wrap the following pseudocode from the ARM Architecture Reference Manul:
...
// if d == 15 then // Can only occur for encoding A1
// ALUWritePC(result); // setflags is always FALSE here
// else
// R[d] = result;
// if setflags then
// APSR.N = result<31>;
// APSR.Z = IsZeroBit(result);
// APSR.C = carry;
// // APSR.V unchanged
into a helper method WriteCoreRegisterWithFlags, and modified the existing methods
to take advantage of it.
Plus add two emulation methods (declaration only for now) for ORR (immediate) and ORR (register).
llvm-svn: 125701
2011-02-17 01:35:27 +00:00
Chris Lattner
3eb0af94c4
fix PR9215, preventing -reassociate from clearing nsw/nuw when
...
it swaps the LHS/RHS of a single binop.
llvm-svn: 125700
2011-02-17 01:29:24 +00:00
Fariborz Jahanian
05d389f407
Improve diagnostics when property names an object type of
...
a forward class. // rdar://8851803
llvm-svn: 125699
2011-02-17 01:26:14 +00:00
Douglas Gregor
669a25aec3
Implement code completion results for the Objective-C Key-Value Coding
...
(KVC) and Key-Value Observing (KVO) protocols.
llvm-svn: 125696
2011-02-17 00:22:45 +00:00
Stephen Wilson
bc15eb1736
Do not use constants from stdint.h that we cannot portably provide on all platforms.
...
llvm-svn: 125695
2011-02-17 00:01:47 +00:00
Nick Lewycky
8d2226208d
Ensure that the NRVO flag has some block to insert into. Fixes PR9178!
...
llvm-svn: 125694
2011-02-16 23:59:08 +00:00
Ted Kremenek
197fcd4418
Fix assertion failure in -Warray-bounds on template parameters used as arrays.
...
llvm-svn: 125693
2011-02-16 23:39:09 +00:00
Greg Clayton
f4ecaa576c
Clean up a bit of the type getting code where lldb_private:Type now has
...
clang_type_t
GetClangFullType(); // Get a completely defined clang type
clang_type_t
GetClangLayoutType(); // Get a clang type that can be used for type layout
clang_type_t
GetClangForwardType(); // A type that can be completed if needed, but is more efficient.
llvm-svn: 125691
2011-02-16 23:00:21 +00:00
Fariborz Jahanian
9cd649d376
Block rewriting bug. Don't take address of captured
...
byref variables again when passing them to inner blocks.
// rdar://9006279
llvm-svn: 125690
2011-02-16 22:37:10 +00:00
Johnny Chen
4890c85e0a
Add emulation methods for ROR (immediate), ROR (register), and RRX.
...
Turns out that they can be funneled through the helper methods
EmulateShiftImm()/ EmulateShiftReg() as well.
Modify EmulateShiftImm() to handle SRType_ROR and SRType_RRX.
And fix a typo in the impl of utility Shift_C() in ARMUtils.h.
llvm-svn: 125689
2011-02-16 22:14:44 +00:00
Ted Kremenek
3a854f8ad2
Placate Doug and change capitalization of diagnostic note.
...
llvm-svn: 125688
2011-02-16 22:08:28 +00:00
Zhanyong Wan
85a203ebdd
Makes most methods in SVals.h conform to the naming guide. Reviewed
...
by kremenek.
llvm-svn: 125687
2011-02-16 21:13:32 +00:00
Caroline Tice
eaf2e4fdf1
Add code to emulate STRB (Thumb) instruction.
...
llvm-svn: 125686
2011-02-16 20:22:22 +00:00
Chandler Carruth
83ac424574
3000 Sema diagnostics should be enough for anyone.
...
llvm-svn: 125684
2011-02-16 19:41:58 +00:00
Johnny Chen
14571f4b67
Add encoding entries for LSL (immediate and register) and LSR (immediate and register) to
...
ARM and Thumb opcode tables.
llvm-svn: 125683
2011-02-16 19:27:43 +00:00
Johnny Chen
f8cd4889ec
Fix clang++ warning building the executable for testing.
...
llvm-svn: 125682
2011-02-16 19:22:52 +00:00
Chris Lattner
28bf91f78e
Add a few missed xforms from GCC PR14753
...
llvm-svn: 125681
2011-02-16 19:16:34 +00:00
Douglas Gregor
d766be689d
Fix a thinko with llvm::Optional, which is clearly the most dangerous class template in the universe
...
llvm-svn: 125679
2011-02-16 19:09:24 +00:00
Douglas Gregor
162b712d38
Teach the CXCodeCompleteResults results structure, which stores
...
code-completion results accessed via libclang, to extend the lifetime
of the allocator used for cached global code-completion results at
least until these completion results are destroyed. Fixes
<rdar://problem/8997369>.
llvm-svn: 125678
2011-02-16 19:08:06 +00:00
Devang Patel
1728c232d5
If preprocessed token introduced empty filename then use main translation unit's filename for debug info entries.
...
llvm-svn: 125672
2011-02-16 18:40:36 +00:00
Johnny Chen
4b22e7e67a
Add tagging for EmulateLDRRtRnImm().
...
llvm-svn: 125671
2011-02-16 18:35:47 +00:00
Douglas Gregor
df7a79a997
Improve the invalidation logic for the cache of global code
...
completions. We now compute a hash of the names of all top-level
declarations and macro definitions, and invalidate the cache when the
hash value changes.
llvm-svn: 125670
2011-02-16 18:16:54 +00:00
Douglas Gregor
012b69d5bb
Teach PPChainedCallbacks to forward the InclusionDirective() callback.
...
llvm-svn: 125669
2011-02-16 18:15:35 +00:00
Jim Ingham
d0a3e12b05
Destroy the dynamic loader plugin in Process::Finalize. If you wait till the auto_ptr gets deleted in the normal course of things the real process class will have been destroyed already, and it's hard to shut down the dynamic loader without accessing some process pure virtual method.
...
llvm-svn: 125668
2011-02-16 17:54:55 +00:00
Stuart Hastings
81c4306005
Swap VT and DebugLoc operands of getExtLoad() for consistency with
...
other getNode() methods. Radar 9002173.
llvm-svn: 125665
2011-02-16 16:23:55 +00:00
Argyrios Kyrtzidis
d691ad1680
Warning -> ExtWarn
...
llvm-svn: 125664
2011-02-16 16:23:31 +00:00
Rafael Espindola
6b6ed5d1f9
Add a debug obj-path option to make it easy to keep the .o produce by LTO.
...
llvm-svn: 125663
2011-02-16 11:19:44 +00:00
John McCall
b5011ab8f9
Remove this FIXME; clear up an unused variable; style.
...
llvm-svn: 125662
2011-02-16 08:39:19 +00:00
John McCall
1bf5846abf
Save a copy expression for non-trivial copy constructions of catch variables.
...
llvm-svn: 125661
2011-02-16 08:02:54 +00:00
Eli Friedman
c8fb2557b9
Remove outdated README entry.
...
llvm-svn: 125660
2011-02-16 07:41:19 +00:00
Eli Friedman
0254c4c01b
Remove outdated README entry.
...
llvm-svn: 125659
2011-02-16 07:18:18 +00:00
Eli Friedman
5f75515e5d
Update README entry.
...
llvm-svn: 125658
2011-02-16 07:17:44 +00:00
Zhanyong Wan
5201b66530
Adds a CMake target for the Basic lib's unit tests. Reviewed by
...
jyasskin and chapuni.
llvm-svn: 125657
2011-02-16 05:45:20 +00:00
Stephen Wilson
7a86fcdd8f
Make declaration of DynamicLoaderLinuxDYLD::CreateInstance match its definition.
...
llvm-svn: 125656
2011-02-16 05:38:31 +00:00
Stephen Wilson
dd9ec590c6
Expose includes for the socket layer on all platforms.
...
This patch reverts a portion of r125199 to allow the tree to build again on
linux. The specific mingw issues that revision intended to address can be
sorted out at a later time.
llvm-svn: 125655
2011-02-16 05:36:26 +00:00
Stephen Wilson
de049291fd
linux: Set ArchSpec m_type correctly from object file.
...
An ArchSpec's type defaults to MachO. Ensure the type is properly set
on ELF systems.
llvm-svn: 125654
2011-02-16 05:25:13 +00:00
Stephen Wilson
d879a4d12a
Use SIZE_MAX instead of SIZE_T_MAX for portability.
...
llvm-svn: 125653
2011-02-16 05:24:31 +00:00
Zhanyong Wan
f8a620f8e1
Improves CMakeLists.txt for Clang's unit tests: make "linked
...
components" and "used libs" arguments of add_clang_unittest().
Reviewed by jyasskin and chapuni.
llvm-svn: 125652
2011-02-16 05:19:17 +00:00