Dan Gohman
30a2959367
Make the debug output of LSR less cryptic and more informative.
...
llvm-svn: 65057
2009-02-19 19:23:27 +00:00
Anders Carlsson
f96954ca30
Add irgen support for the noinline attribute.
...
llvm-svn: 65056
2009-02-19 19:22:11 +00:00
Anders Carlsson
880971241b
Add sema support for the noinline attribute.
...
llvm-svn: 65055
2009-02-19 19:16:48 +00:00
Ted Kremenek
193cbdcbe3
Update checker build.
...
llvm-svn: 65054
2009-02-19 19:08:21 +00:00
Daniel Dunbar
e3c92bc672
Add another IntExprEvaluator::Success overload to suck up remained of
...
manual setting of the Result.
- Idiom now enforces that result will always have correct width and
type; this exposed three new bugs:
o Enum constant decl value can have different width than type
(PR3173).
o EvaluateInteger should not run an IntExprEvaluator over
non-integral expressions.
o FloatExprEvaluate was not handling casts correctly (it was
evaluating the cast in the IntExprEvaluator!).
llvm-svn: 65053
2009-02-19 18:37:50 +00:00
Chris Lattner
91668def8b
fix PR3609, emit:
...
t.c:1:10: error: missing terminating '>' character
#include <stdio.h
^
instead of:
t.c:1:10: error: missing terminating " character
#include <stdio.h
^
llvm-svn: 65052
2009-02-19 18:29:56 +00:00
Fariborz Jahanian
3114e94e10
Generate the conservative objc gc's API for now.
...
llvm-svn: 65051
2009-02-19 18:29:24 +00:00
Ted Kremenek
bea465aefb
Update test case to include a leak that occurs at the place of allocation.
...
llvm-svn: 65048
2009-02-19 18:20:28 +00:00
Ted Kremenek
deafc5c601
retain/release checker: Fix crasher when the leak site is the same expression that allocates an object.
...
llvm-svn: 65047
2009-02-19 18:18:48 +00:00
Chris Lattner
780b46fd50
Fix PR3619 by properly considering size modifiers and type quals when
...
uniquing array types.
llvm-svn: 65046
2009-02-19 17:31:02 +00:00
Zhongxing Xu
69aac369c3
only track integer and pointer values for now.
...
llvm-svn: 65041
2009-02-19 09:56:08 +00:00
Gabor Greif
837707e52a
fix typo
...
llvm-svn: 65040
2009-02-19 09:27:40 +00:00
Bill Wendling
82d8f120ec
Print out a new label only if the debug location *tuple* is different. The debug
...
locations may change, but the tuples may be the same.
llvm-svn: 65039
2009-02-19 09:16:38 +00:00
Daniel Dunbar
8aafc89db8
Add IntExprEvaluator::Success method.
...
- Handles assignment to Result with appropriate type.
- Simplifies & encapsulates most direct handling of the Result value;
prep for allowing IntExprEvaluator to deal with LValue APValues.
- No intended functionality change.
llvm-svn: 65038
2009-02-19 09:06:44 +00:00
Zhongxing Xu
e6e76aa571
fix test case
...
llvm-svn: 65037
2009-02-19 08:45:23 +00:00
Zhongxing Xu
5b9223fcf2
add test case.
...
llvm-svn: 65036
2009-02-19 08:42:43 +00:00
Zhongxing Xu
f74ab25e22
Convert the offset to signed before making an ElementRegion with it. It seems
...
that this problem arises from time to time. We should find a fundamental
solution for it.
llvm-svn: 65035
2009-02-19 08:37:16 +00:00
Bill Wendling
13aada6fc4
Forgot to check that debug information is supported.
...
llvm-svn: 65034
2009-02-19 08:06:12 +00:00
Ted Kremenek
1d1d39757a
Update checker build.
...
llvm-svn: 65033
2009-02-19 07:22:21 +00:00
Daniel Dunbar
f0acf7bd4c
Don't emit K&R unprototyped function definitions as varargs.
...
- <rdar://problem/6584606> clang/x86-64 - too many reg saves
llvm-svn: 65032
2009-02-19 07:15:39 +00:00
Daniel Dunbar
5c275a94fb
Add Type::getAsFunctionNoProto
...
llvm-svn: 65031
2009-02-19 07:11:26 +00:00
Chris Lattner
124bb197a7
only do one DenseMap lookup instead of two (one to find out if there is
...
already an entry and one to insert).
llvm-svn: 65030
2009-02-19 07:05:16 +00:00
Chris Lattner
74c04eb99e
minor simplification.
...
llvm-svn: 65029
2009-02-19 07:02:09 +00:00
Chris Lattner
dfd6b3d190
use early exit to reduce indentation.
...
llvm-svn: 65028
2009-02-19 07:00:44 +00:00
Chris Lattner
bd4dc67bd2
standardise on bastardised american spelling.
...
llvm-svn: 65027
2009-02-19 06:49:30 +00:00
Chris Lattner
06ef388a61
fix a bug introduced in my previous patch: moving clang headers to the
...
"after" group instead of the system group makes it so #include <limits.h>
picks up the *system* limits.h file before clang's. This causes a failure
on linux and is definitely not what we want.
llvm-svn: 65026
2009-02-19 06:48:28 +00:00
Chris Lattner
5555697fa0
disable copying and assignment of AttributeList
...
llvm-svn: 65025
2009-02-19 06:41:35 +00:00
Chris Lattner
ab68faf9f0
fix warning in no-assert mode.
...
llvm-svn: 65024
2009-02-19 06:41:13 +00:00
Anders Carlsson
0756c97dae
Emit the correct diagnostics when we constant fold an array size to a negative value.
...
llvm-svn: 65023
2009-02-19 06:30:50 +00:00
Chris Lattner
b5d8416b90
don't new[] an empty array when an AttributeList has
...
zero expression arguments. This eliminates 2579 1-byte
mallocs when parsing Cocoa.h.
llvm-svn: 65022
2009-02-19 06:25:12 +00:00
Anders Carlsson
0bbcfa6bb9
Make sure to check the value of the constant expression, as suggested by Daniel.
...
llvm-svn: 65021
2009-02-19 06:19:15 +00:00
Nick Lewycky
3852519eca
Regenerate.
...
llvm-svn: 65020
2009-02-19 06:18:56 +00:00
Nick Lewycky
7db7eb6e40
Default to building with position independent code. This may increase LLVM's
...
run time but will make LLVM easier to use as a library.
llvm-svn: 65019
2009-02-19 06:18:24 +00:00
Daniel Dunbar
b2f4cdb233
Emission of global variable initialializer was broken in rare
...
situation where a tentative decl was emitted *after* the actual
initialization. This occurs in some rare situations with static decls.
- PR3613.
- I'm not particularly happy with this fix, but I don't see a simpler
or more elegant solution yet.
llvm-svn: 65018
2009-02-19 05:36:41 +00:00
Chris Lattner
3c50fdf4ca
If an executable is run through a symlink, dladdr will return the
...
symlink. We really want the ultimate executable being run, not
the symlink. This lets clang find its headers when invoked through
a symlink. rdar://6602012
llvm-svn: 65017
2009-02-19 05:34:35 +00:00
Ted Kremenek
52932d725a
scan-build now searches for the clang binary in the subdirectory 'cbin'.
...
llvm-svn: 65014
2009-02-19 04:58:30 +00:00
Anders Carlsson
ef56fbaa39
Handle the GNU void* and function pointer arithmetic extensions for constant expressions as well.
...
llvm-svn: 65013
2009-02-19 04:55:58 +00:00
Chris Lattner
cb60143ec3
always search for "builtin" headers at the end of the search path,
...
and never remap them with -isysroot. This fixes PR3614.
llvm-svn: 65012
2009-02-19 04:55:19 +00:00
Chris Lattner
45d26bd00d
PR3614: "ignoring nonexistent directory" should print the -isysroot
...
mapped path, not the requested path.
llvm-svn: 65009
2009-02-19 04:48:57 +00:00
Chris Lattner
ec5a332e46
fix another typo gabor noticed
...
llvm-svn: 65006
2009-02-19 04:44:58 +00:00
Chris Lattner
2adba6a9a2
fix a typo gabor noticed
...
llvm-svn: 65005
2009-02-19 04:44:27 +00:00
Ted Kremenek
e571c4eeb7
Add test case for 'nil receiver returns undefined struct value' check.
...
llvm-svn: 65004
2009-02-19 04:07:38 +00:00
Ted Kremenek
66d9edc346
Implemented simple check in <rdar://problem/6600344>: When the receiver of a
...
message expression is nil and the return type is struct then the returned value
is undefined or potentially garbage.
llvm-svn: 65003
2009-02-19 04:06:22 +00:00
Mike Stump
4e1f26aad0
Fit 80col and fix indentation.
...
llvm-svn: 65000
2009-02-19 03:04:26 +00:00
Dan Gohman
c0ae249b22
Fix the logic in this assertion to properly validate the number
...
of arguments.
llvm-svn: 64999
2009-02-19 02:55:18 +00:00
Mike Stump
82191d0413
Fix spacing.
...
llvm-svn: 64998
2009-02-19 02:54:59 +00:00
Dan Gohman
6c109b4979
Reapply r57340. VMKit does not presently rely on materializeFunction
...
being called with the lock released, and this fixes a race condition
in the JIT as used by lli.
llvm-svn: 64997
2009-02-19 02:40:15 +00:00
Mike Stump
5d2534ada7
More codegen for blocks. The type of block literals should be better.
...
The size calculation is improved.
llvm-svn: 64994
2009-02-19 01:01:04 +00:00
Douglas Gregor
0f3dd9a86b
Provide a proper source location when building an implicit dereference. Fixes PR3600
...
llvm-svn: 64993
2009-02-19 00:52:42 +00:00
Fariborz Jahanian
83e3eea5fc
Some code simplification. ir gen for gc'able array
...
of objects in objc.
llvm-svn: 64992
2009-02-19 00:48:05 +00:00