Douglas Gregor
ff42ec5895
Fix some regressions in the GCC testsuite due to bad souce-location
...
information. Fixes <rdar://problem/9063643>.
llvm-svn: 126721
2011-03-01 00:34:57 +00:00
Eli Friedman
683bbc16c4
Add an obvious missing safety check to DAE::RemoveDeadArgumentsFromCallers.
...
llvm-svn: 126720
2011-03-01 00:33:47 +00:00
Chris Lattner
0c6cb46ac1
add a note
...
llvm-svn: 126719
2011-03-01 00:24:51 +00:00
Chris Lattner
2e72da947c
-fwrapv should turn off the inbounds markers from geps used for pointer
...
arithmetic. This is part of PR9256, it would be great if someone else
wired up -fno-strict-overflow in the driver to -fwrapv.
llvm-svn: 126718
2011-03-01 00:03:48 +00:00
Ted Kremenek
49d15b959e
Unbreak CMake build.
...
llvm-svn: 126717
2011-03-01 00:02:51 +00:00
Douglas Gregor
9b27251e58
Refactor the construction of nested-name-specifiers with
...
source-location information into a NestedNameSpecifierLocBuilder
class, which lives within the AST library and centralize all knowledge
of the format of nested-name-specifier location information here.
No functionality change.
llvm-svn: 126716
2011-02-28 23:58:31 +00:00
Ted Kremenek
20164dcc68
Unbreak CMake build.
...
llvm-svn: 126715
2011-02-28 23:56:33 +00:00
Talin
3a0a30d44d
Add an END_WITH_NULL accessor for ConstantStruct.
...
llvm-svn: 126714
2011-02-28 23:53:27 +00:00
Rafael Espindola
22f60303f2
Don't warn about "clang -use-gold-plugin -c ...". With this users can say
...
CC="clang -use-gold-plugin" CFLAGS=-emit-llvm ../configure...
and not be hit with a warning for each .c file.
llvm-svn: 126713
2011-02-28 23:29:45 +00:00
Caroline Tice
6261d240e1
Add code to emulate LDRH (literal) Arm instruction.
...
llvm-svn: 126709
2011-02-28 23:15:24 +00:00
Stephen Wilson
bbb7e06ad3
Add register context for i386 on Linux.
...
Patch by Marco Minutoli!
llvm-svn: 126696
2011-02-28 22:52:38 +00:00
Chris Lattner
1ac5e0c5c6
update cmake
...
llvm-svn: 126694
2011-02-28 22:45:25 +00:00
Douglas Gregor
9cbc22ba2d
Teach Sema::CheckTypenameType to use nested-name-specifiers with
...
source-location information. We don't actually preserve this
information in any of the resulting TypeLocs (yet), so it doesn't
matter.
llvm-svn: 126693
2011-02-28 22:42:13 +00:00
Caroline Tice
adef8fb003
Add code to emulate LDRH (immediate, Thumb) arm instruction.
...
llvm-svn: 126692
2011-02-28 22:39:58 +00:00
Devang Patel
bbe4ff99e0
Use single code path to handle c++ structs and classes while generating debug info.
...
llvm-svn: 126691
2011-02-28 22:32:45 +00:00
Argyrios Kyrtzidis
29b8656935
[analyzer] Remove unused checker stuff from AnalysisConsumer and some unused headers.
...
llvm-svn: 126690
2011-02-28 22:30:38 +00:00
Renato Golin
ec0fc7d842
Fix .fpu printing in ARM assembly, regarding bug http://llvm.org/bugs/show_bug.cgi?id=8931
...
llvm-svn: 126689
2011-02-28 22:04:27 +00:00
Douglas Gregor
ea972d3faa
Push nested-name-specifier location information into DeclRefExpr and
...
MemberExpr, the last of the expressions with qualifiers!
llvm-svn: 126688
2011-02-28 21:54:11 +00:00
Kevin Enderby
63b0d108a2
Add missing whitespace in the formatting.
...
llvm-svn: 126687
2011-02-28 21:45:12 +00:00
Jan Sjödin
30a52dec93
Make all static functions become static class methods. Move shared (duplicated) functions to new MCELF class.
...
llvm-svn: 126686
2011-02-28 21:45:04 +00:00
Fariborz Jahanian
557c1ed522
Revert r126678.
...
llvm-svn: 126685
2011-02-28 21:19:34 +00:00
Owen Anderson
0dc63104c6
Use the correct shift amount type.
...
llvm-svn: 126684
2011-02-28 21:10:10 +00:00
Owen Anderson
4f4df81861
Clean whitespace.
...
llvm-svn: 126683
2011-02-28 20:57:56 +00:00
Chris Lattner
c93d207e8c
fix a signed comparison warning.
...
llvm-svn: 126682
2011-02-28 20:50:35 +00:00
Douglas Gregor
0da1d43e16
Push nested-name-specifier source location information into
...
UnresolvedLookupExpr and UnresolvedMemberExpr.
Also, improve the computation that checks whether the base of a member
expression (either unresolved or dependent-scoped) is implicit. The
previous check didn't cover all of the cases we use in our
representation, which threw off source-location information for these
expressions (which, in turn, caused some breakage in libclang's token
annotation).
llvm-svn: 126681
2011-02-28 20:01:57 +00:00
Dan Gohman
6564ca0c23
Delete obsolete test.
...
llvm-svn: 126680
2011-02-28 19:58:14 +00:00
Owen Anderson
1401dbd211
Fix warning when building with clang++.
...
llvm-svn: 126679
2011-02-28 19:58:06 +00:00
Fariborz Jahanian
79246322a6
objc IRGen for Next runtime message API.
...
The prototype for objc_msgSend() is technically variadic -
`id objc_msgSend(id, SEL, ...)`.
But all method calls should use a prototype that matches the method,
not the prototype for objc_msgSend itself().
// rdar://9048030
llvm-svn: 126678
2011-02-28 19:55:59 +00:00
Argyrios Kyrtzidis
9eb02dfa89
[analyzer] Remove '-analyzer-check-objc-mem' flag, the nominee for best misnomer award.
...
llvm-svn: 126676
2011-02-28 19:49:42 +00:00
Argyrios Kyrtzidis
af181bb19b
Move test/SemaObjC/method-arg-decay.m -> test/Analysis/method-arg-decay.m
...
llvm-svn: 126675
2011-02-28 19:49:21 +00:00
Argyrios Kyrtzidis
6a1c760760
[analyzer] Run the ExprEngine depending on the CheckerManager having path-sensitive checkers.
...
llvm-svn: 126674
2011-02-28 19:49:17 +00:00
Argyrios Kyrtzidis
20f5caa518
[analyzer] The current UninitializedValuesChecker will go away, remove '-warn-uninit-values'.
...
llvm-svn: 126673
2011-02-28 19:49:12 +00:00
Dan Gohman
06d70015ce
Delete the GEPSplitter experiment.
...
llvm-svn: 126671
2011-02-28 19:47:47 +00:00
Peter Collingbourne
938f7d0e46
Kill 18 month old #if 0'd code in StmtXML.cpp
...
llvm-svn: 126670
2011-02-28 19:42:30 +00:00
Dan Gohman
b8a25f49f3
Delete the SimplifyHalfPowrLibCalls pass, which was unused, and
...
only existed as the result of a misunderstanding.
llvm-svn: 126669
2011-02-28 19:41:14 +00:00
Dan Gohman
161058838c
Delete the LiveValues pass. I won't get get back to the project it
...
was started for in the foreseeable future.
llvm-svn: 126668
2011-02-28 19:37:59 +00:00
Jakob Stoklund Olesen
87d7408f29
Fix typo introduced by r126661: "Fix a typo which ..."
...
llvm-svn: 126666
2011-02-28 19:18:59 +00:00
Douglas Gregor
dd733fb041
Remove redundant friend declaration
...
llvm-svn: 126665
2011-02-28 19:17:05 +00:00
David Greene
20a1cbefad
[AVX] Add decode support for VUNPCKLPS/D instructions, both 128-bit
...
and 256-bit forms. Because the number of elements in a vector
does not determine the vector type (4 elements could be v4f32 or
v4f64), pass the full type of the vector to decode routines.
llvm-svn: 126664
2011-02-28 19:06:56 +00:00
Douglas Gregor
e16af53619
Push nested-name-specifier source location information into
...
CXXDependentScopeMemberExpr, and clean up instantiation of
nested-name-specifiers with dependent template specialization types in
the process.
llvm-svn: 126663
2011-02-28 18:50:33 +00:00
Kevin Enderby
58775fea6f
Fix the arm's disassembler for blx that was building an MCInst without the
...
needed two predicate operands before the imm operand.
llvm-svn: 126662
2011-02-28 18:46:31 +00:00
Evan Cheng
6e3d443646
Fix a typo which cause dag combine crash. rdar://9059537.
...
llvm-svn: 126661
2011-02-28 18:45:27 +00:00
Argyrios Kyrtzidis
2c49ec7f1d
[analyzer] Migrate NSErrorChecker and DereferenceChecker to CheckerV2.
...
They cooperate in that NSErrorChecker listens for ImplicitNullDerefEvent events that
DereferenceChecker can dispatch.
ImplicitNullDerefEvent is when we dereferenced a location that may be null.
llvm-svn: 126659
2011-02-28 17:36:18 +00:00
Argyrios Kyrtzidis
a15dfec3f5
[analyzer] Introduce "event" mechanism in CheckerManager.
...
A checker can register as receiver/listener of "events" (basically it registers a callback
with a function getting called with an argument of the event type) and other checkers can
register as "dispatchers" and can pass an event object to all the listeners.
This allows cooperation amongst checkers but with very loose coupling.
llvm-svn: 126658
2011-02-28 17:36:09 +00:00
Argyrios Kyrtzidis
98b570ecad
[analyzer] Run AST checkers for ObjCMethodDecls.
...
llvm-svn: 126657
2011-02-28 17:36:04 +00:00
Douglas Gregor
5a064725d6
Eliminate the last remains of TemplateSpecializationTypes with
...
dependent template names. There is still a lot of redundant code in
TreeTransform to cope with TemplateSpecializationTypes, which I'll
remove in stages.
llvm-svn: 126656
2011-02-28 17:23:35 +00:00
Stuart Hastings
67c5c3e939
Support for byval parameters on ARM. Will be enabled by a forthcoming
...
patch to the front-end. Radar 7662569.
llvm-svn: 126655
2011-02-28 17:17:53 +00:00
David Chisnall
da20991a1b
Make -fobjc-nonfragile-abi and -fgnu-runtime imply -fblocks (unless -fno-blocks is specified), because this combination of flags defines an Objective-C runtime that includes a blocks runtime.
...
llvm-svn: 126654
2011-02-28 17:11:43 +00:00
Douglas Gregor
cce5c97ac3
Unbreak CMake build
...
llvm-svn: 126653
2011-02-28 14:32:11 +00:00
Duncan Sands
f66e4611f9
Windows codegen also dies on this, so restrict to the platform it was
...
actually tested on.
llvm-svn: 126652
2011-02-28 14:22:08 +00:00