Chris Lattner
79f6de0fd0
true is pass, false is success.
...
llvm-svn: 63627
2009-02-03 07:28:12 +00:00
Chris Lattner
96960c82db
disable this test too
...
llvm-svn: 63626
2009-02-03 07:25:43 +00:00
Chris Lattner
a8be8de596
make this fail faster.
...
llvm-svn: 63625
2009-02-03 07:24:53 +00:00
Chris Lattner
a77cad1012
add #include to make more self-contained.
...
llvm-svn: 63624
2009-02-03 07:20:54 +00:00
Daniel Dunbar
32931eb21d
Change ABIInfo to compute information for a full signature at a time
...
(the main point of this restructing).
llvm-svn: 63619
2009-02-03 06:51:18 +00:00
Daniel Dunbar
0136282a9c
Remove ABIArgInfo::Default kind, ABI is now responsible for specifying
...
acceptable kind with more precise semantics.
llvm-svn: 63617
2009-02-03 06:30:17 +00:00
Daniel Dunbar
67dace890f
Add ABIArgInfo::Direct kind, which passes arguments using whatever the
...
native IRgen type is. This is like Default, but without any extra
semantics (like automatic tweaking of structures or void).
llvm-svn: 63615
2009-02-03 06:17:37 +00:00
Chris Lattner
5b0de55045
remove some overly-crazy ideas.
...
llvm-svn: 63614
2009-02-03 06:05:34 +00:00
Daniel Dunbar
5a0acdc982
Add two FIXMEs.
...
llvm-svn: 63613
2009-02-03 06:02:10 +00:00
Daniel Dunbar
b52d077d8b
Always use CGFunctionInfo to access ABI information.
...
llvm-svn: 63612
2009-02-03 05:59:18 +00:00
Daniel Dunbar
313321ea23
Move ABIArgInfo into CGFunctionInfo, computed on creation.
...
- Still have to convert some consumers over.
llvm-svn: 63610
2009-02-03 05:31:23 +00:00
Chris Lattner
a814d96116
Content Cache only needs to be 4-byte aligned. Since it is stored in
...
an std::set, we can't make a strong guarantee about what its alignment
will be. Since I don't need the 3rd bit anyway yet, just change the
assertion.
llvm-svn: 63588
2009-02-03 01:28:04 +00:00
Daniel Dunbar
6d6b0d309a
Move ABIInfo/ABIArgInfo classes into ABIInfo.h
...
llvm-svn: 63586
2009-02-03 01:05:53 +00:00
Douglas Gregor
8761da5f68
Simplify the way in which we inject the names of tag definitions and
...
elaborated-type-specifier declarations into outer scopes while
retaining their proper lexical scope. This way is simpler and more
consistent with the way DeclContexts work, and also fixes
http://llvm.org/bugs/show_bug.cgi?id=3430
llvm-svn: 63581
2009-02-03 00:34:39 +00:00
Fariborz Jahanian
c88a70d885
objc2's ir-gen for nonfragile ivar access.
...
llvm-svn: 63578
2009-02-03 00:09:52 +00:00
Daniel Dunbar
e0be82956b
Memoize CGFunctionInfo construction.
...
llvm-svn: 63576
2009-02-03 00:07:12 +00:00
Mike Stump
99231d5c98
Formatting fix.
...
llvm-svn: 63573
2009-02-02 23:46:21 +00:00
Daniel Dunbar
3668cb2d3c
Change CGFunctionInfo args iterator to not include the return type.
...
llvm-svn: 63571
2009-02-02 23:43:58 +00:00
Douglas Gregor
8bd3c2ebac
Add a macro-based enumeration of all of the Decl nodes (like we do
...
with Stmt/Expr nodes), and convert some of the more mundane
switch-on-all-decl-kinds uses over to use this new file.
llvm-svn: 63570
2009-02-02 23:39:07 +00:00
Daniel Dunbar
bf8c24ad89
Thread CGFunctionInfo construction through CodeGenTypes.
...
- Inefficient & leaks memory currently, will be cleaned up subsequently.
llvm-svn: 63567
2009-02-02 23:23:47 +00:00
Mike Stump
f126e59042
Use the updated CommandLine api for -fno-blocks.
...
llvm-svn: 63563
2009-02-02 22:57:57 +00:00
Nuno Lopes
7cffb63a9d
emit diagnostic when casting a ptr to a small int when doing static initialization (addresses Eli's comments I believe)
...
llvm-svn: 63562
2009-02-02 22:57:15 +00:00
Nuno Lopes
026bcde14b
fix TryToFixInvalidVariablyModifiedType to reject negative array sizes
...
llvm-svn: 63557
2009-02-02 22:32:08 +00:00
Douglas Gregor
bb2e688396
Steve set me straight on this one. GCC was right, EDG was wrong: the
...
direct-initialization following a user-defined conversion can select
any constructor; it just can't employ any user-defined
conversions. So we ban those conversions and classify the constructor
call based on the relationship between the "from" and "to" types in
the conversion.
llvm-svn: 63554
2009-02-02 22:11:10 +00:00
Daniel Dunbar
d931a87f90
More ABI API cleanup.
...
- Lift CGFunctionInfo creation above ReturnTypeUsesSret and
EmitFunction{Epi,Pro}log.
llvm-svn: 63553
2009-02-02 22:03:45 +00:00
Ted Kremenek
e9aee88eed
Clean up indentation.
...
llvm-svn: 63551
2009-02-02 21:45:32 +00:00
Daniel Dunbar
7633cbf005
ABI handling API changes.
...
- Lift CGFunctionInfo creation up to callers of EmitCall.
- Move isVariadic bit out of CGFunctionInfo, take as argument to
GetFunctionType instead.
No functionality change.
llvm-svn: 63550
2009-02-02 21:43:58 +00:00
Douglas Gregor
0e8fc3c773
Add iterators to LookupResult, allowing one to iterate over the
...
non-ambiguous name lookup results without allocating any memory, e.g.,
for sets of overloaded functions.
llvm-svn: 63549
2009-02-02 21:35:47 +00:00
Ted Kremenek
bb70c08c8d
AnalysisConsumer:
...
- Pass "Actions" vector by reference.
- Remove guard against checking macro-generated code.
llvm-svn: 63546
2009-02-02 20:52:40 +00:00
Fariborz Jahanian
9f84b78ac1
Refactored code gen for ivar access in preparation for
...
objc2 nonfragile ivar access code gen.
llvm-svn: 63541
2009-02-02 20:02:29 +00:00
Daniel Dunbar
f5589ac5a9
Shuffle some functions around, no functionality change.
...
llvm-svn: 63538
2009-02-02 19:06:38 +00:00
Douglas Gregor
62d27986ea
Split specific_decl_iterator, which had a run-time field for
...
determining what decls are acceptable, into specific_decl_iterator
(in which all decls matching the SpecificDecl type requirements are
acceptable) and filtered_decl_iterator (which also does a run-time
check via a member pointer non-type template parameter). This saves
some space in the iterators.
llvm-svn: 63535
2009-02-02 18:25:48 +00:00
Steve Naroff
49140cb544
Change the ObjC type encoding for block pointer types to "@?" (for consistency with GCC).
...
This fixes <rdar://problem/6538564> clang ObjC rewriter: Wrong encoding emitted for methods with Block parameters.
llvm-svn: 63534
2009-02-02 18:24:29 +00:00
Daniel Dunbar
50f520171c
Add FIXME.
...
llvm-svn: 63531
2009-02-02 18:06:39 +00:00
Douglas Gregor
7946ef9fe0
Slim down the specific_decl_iterator, since NULL denotes the end of the range. Good eyes, Chris
...
llvm-svn: 63528
2009-02-02 17:56:05 +00:00
Douglas Gregor
a5c9e1ae93
Check value-initializations that occur when an initializer list
...
provides too few elements.
llvm-svn: 63525
2009-02-02 17:43:21 +00:00
Steve Naroff
f26a1d4ef7
RewriteObjC::RewriteBlockDeclRefExpr(): Add parens to enforce precedence. This fixes <rdar://problem/6529468> clang ObjC rewriter: Need parenthesis around dereferences in rewritten Blocks.
...
Also changed RewriteObjC::SynthesizeBlockFunc() to declare a pointer to the block argument even when there are no user-supplied arguments to the block.
llvm-svn: 63522
2009-02-02 17:19:26 +00:00
Nuno Lopes
598afdcfe7
allow cast from array to int to be considered as constant
...
llvm-svn: 63519
2009-02-02 16:07:41 +00:00
Nuno Lopes
0c92d25f2b
avoid creating tmp files elsewhere
...
llvm-svn: 63518
2009-02-02 15:33:56 +00:00
Nuno Lopes
8877f99f9d
fix PR3459: improve compatibility with gcc when checking for constant exprs
...
llvm-svn: 63517
2009-02-02 15:00:55 +00:00
Eli Friedman
1f90fe17f9
Fix for PR3447: use padded sizes for computations on struct/union
...
constants.
llvm-svn: 63491
2009-02-01 08:12:19 +00:00
Anders Carlsson
12beab7085
Forgot to add this test.
...
llvm-svn: 63484
2009-01-31 19:07:49 +00:00
Daniel Dunbar
5df2b0baaa
Remove unused overload of GetFunctionType.
...
llvm-svn: 63472
2009-01-31 03:05:44 +00:00
Daniel Dunbar
a8b7f6bb13
Initialize CGFunctionInfo isVariadic bit correctly.
...
llvm-svn: 63471
2009-01-31 02:54:56 +00:00
Fariborz Jahanian
c22f236e81
Use target alignment API to set objc2's meta-data
...
alignment.
llvm-svn: 63470
2009-01-31 02:43:27 +00:00
Daniel Dunbar
a37249c663
Err, unbreak my previous "no functionality change commit", will fix properly later.
...
llvm-svn: 63467
2009-01-31 02:20:43 +00:00
Daniel Dunbar
3cd20632ff
Kill off CGCallInfo, always use CGFunctionInfo for encapsulating
...
function/call info.
llvm-svn: 63466
2009-01-31 02:19:00 +00:00
Ted Kremenek
a377abfe26
Update checker build.
...
llvm-svn: 63464
2009-01-31 01:32:23 +00:00
Anders Carlsson
d277d790e0
Add sema support for the cleanup attribute.
...
llvm-svn: 63462
2009-01-31 01:16:18 +00:00
Fariborz Jahanian
0408723269
class meta-data belong to __objc_data section (in objc2
...
nonfragile abi).
llvm-svn: 63461
2009-01-31 01:07:39 +00:00