Douglas Gregor
f9edf80c39
When trying to determine whether one operand of a conditional
...
expression can be converted to the type of another, only apply the
lvalue-to-rvalue conversion to the type of the expression we're
converting, *not* the array-to-pointer or function-to-pointer
conversions. Fixes PR6595.
llvm-svn: 99652
2010-03-26 20:59:55 +00:00
Douglas Gregor
34147278ea
Eliminate the non-InitializedEntity PerformCopyInitialization() and
...
re-route its only caller to the newer
PerformCopyInitialization(). We're down to one remaining caller of
Sema::CheckReferenceInit.
llvm-svn: 99650
2010-03-26 20:35:59 +00:00
Daniel Dunbar
e17606d513
Make sure we don't include mm_malloc.h in this test, it includes errno.h which
...
we aren't always able to find on Win32.
llvm-svn: 99649
2010-03-26 20:17:23 +00:00
Daniel Dunbar
6a6199de67
Fix 80 col violations.
...
llvm-svn: 99648
2010-03-26 20:17:17 +00:00
Douglas Gregor
838fcc318a
Switch semantic analysis of the conditional operator from using
...
CheckReferenceInit to using the new initialization sequence code.
llvm-svn: 99647
2010-03-26 20:14:36 +00:00
Gabor Greif
108abc6726
fix iterator name
...
llvm-svn: 99646
2010-03-26 19:59:25 +00:00
Dan Gohman
aedde1e4c0
Minor grammar and html fixes.
...
llvm-svn: 99644
2010-03-26 19:51:14 +00:00
Gabor Greif
853daf4848
some more tweaks
...
llvm-svn: 99643
2010-03-26 19:40:38 +00:00
Dan Gohman
37027c30ec
Tell "the rest of the story" about LLVM's iterators' implicit conversions.
...
llvm-svn: 99642
2010-03-26 19:39:05 +00:00
Daniel Dunbar
b9e176b0ec
Runtime: Install the new libcc_kext.a produced by the clang_darwin compiler-rt
...
configuration.
llvm-svn: 99641
2010-03-26 19:37:38 +00:00
Gabor Greif
450dfeba64
fix formatting and a validation fail
...
llvm-svn: 99640
2010-03-26 19:35:48 +00:00
Gabor Greif
6d6cf8ff00
add a blurb on const versions of chain traversals and a word of caution
...
llvm-svn: 99638
2010-03-26 19:30:47 +00:00
Dale Johannesen
6096d5a279
Debug info shouldn't affect kills.
...
llvm-svn: 99637
2010-03-26 19:21:26 +00:00
Devang Patel
5bc1c4bd4e
Add a paragram describing how to extract line number information.
...
llvm-svn: 99636
2010-03-26 19:08:36 +00:00
Gabor Greif
66de04936b
http://englishplus.com/grammar/00000296.htm
...
llvm-svn: 99635
2010-03-26 19:04:42 +00:00
Daniel Dunbar
16204101df
Spell -triple correctly for %clang, not %clang_cc1.
...
llvm-svn: 99634
2010-03-26 19:02:07 +00:00
Dan Gohman
42e77df78c
Fix SmallVector's insert to handle non-random-access iterators.
...
llvm-svn: 99633
2010-03-26 18:53:37 +00:00
Daniel Dunbar
8900ab9b2f
Clang/Darwin: Add definition for files to put in cc_kext.a.
...
llvm-svn: 99632
2010-03-26 18:52:45 +00:00
Jim Grosbach
bf59859b2b
vldm/vstm can only do up to 16 double-word registers at a time.
...
Radar 7797856
llvm-svn: 99630
2010-03-26 18:41:09 +00:00
Johnny Chen
8fc94d6362
Add N3RegFrm to represent "NEON 3 vector register format" instructions.
...
Examples are VABA (Vector Absolute Difference and Accumulate), VABAL (Vector
Absolute Difference and Accumulate Long), and VABD (Vector Absolute Difference).
llvm-svn: 99628
2010-03-26 18:32:20 +00:00
Chris Lattner
445a2c7b5c
i386-apple-darwin10 implies sse2, this option shouldn't be needed.
...
llvm-svn: 99627
2010-03-26 17:51:13 +00:00
Chris Lattner
8c5d05a299
fix a case where macro expansion should be disabled, patch by
...
Abramo Bagnara!
llvm-svn: 99626
2010-03-26 17:49:16 +00:00
Chris Lattner
cebeab9f8c
merge all the macro disable tests by using filecheck.
...
llvm-svn: 99625
2010-03-26 17:46:33 +00:00
Chris Lattner
80dbccd1bf
fix a bug in paste avoidance which would cause us to accidentally
...
form a >>=. Patch by Abramo Bagnara, testcase by me.
llvm-svn: 99624
2010-03-26 17:10:02 +00:00
Chris Lattner
6efe46cced
xmmintrin just requires sse2, not sse3.
...
llvm-svn: 99623
2010-03-26 17:05:16 +00:00
Kovarththanan Rajaratnam
bbdaa62fe5
No need to specify ${CMAKE_CURRENT_BINARY_DIR}
...
llvm-svn: 99622
2010-03-26 16:46:16 +00:00
Evan Cheng
3365fb1412
Do not sibcall if stack needs to be dynamically aligned.
...
llvm-svn: 99620
2010-03-26 16:26:03 +00:00
Gabor Greif
7da63a36f1
add a slight variation of test3, where
...
argument list seems to be different, but in fact
is semantically equivalent; check that we do not error here
llvm-svn: 99617
2010-03-26 08:26:30 +00:00
Nick Lewycky
3cfe6af8b5
Implement new mangling for vectors.
...
llvm-svn: 99616
2010-03-26 07:18:04 +00:00
Douglas Gregor
f956b35f98
Do not mark the destructor of a function parameter's type. Fixes PR6709.
...
llvm-svn: 99615
2010-03-26 06:57:13 +00:00
Anders Carlsson
aaf8acfea1
Revert r99612 and see if it fixes self-host.
...
llvm-svn: 99614
2010-03-26 06:35:42 +00:00
Douglas Gregor
d829eab92b
Add tests for PR6707.
...
llvm-svn: 99613
2010-03-26 05:57:46 +00:00
Anders Carlsson
6fffc64dd2
Don't initialize virtual pointers for primary bases, they've already been initialized.
...
llvm-svn: 99612
2010-03-26 05:53:12 +00:00
Douglas Gregor
0a29a05f02
When deducing an integral template argument for a non-type template
...
parameter, keep the integral value exactly as it was in the source
code rather than trying to convert it to the type of the non-type
template parameter (which may still be dependent!). The value will
then be converted to the appropriate type once we check the resulting
template arguments. Fixes PR6707.
llvm-svn: 99611
2010-03-26 05:50:28 +00:00
John McCall
e0b2ddb492
Reapply r99596 with a fix: link an instantiated friend function to its
...
pattern if it has a body.
llvm-svn: 99610
2010-03-26 04:53:08 +00:00
Anders Carlsson
1f9348c1fc
Simplify InitializeVtablePtrs in preparation of making it work with construction vtables.
...
llvm-svn: 99609
2010-03-26 04:39:42 +00:00
Anders Carlsson
f1a994ce33
Add and implement CodeGenVTables::getSecondaryVirtualPointerIndex (not used yet).
...
llvm-svn: 99608
2010-03-26 04:23:58 +00:00
Anders Carlsson
e5d78c03c3
Didn't mean to commit this.
...
llvm-svn: 99607
2010-03-26 04:14:45 +00:00
Anders Carlsson
92d95f2f7b
Use the new vtable layout code for construction vtables.
...
llvm-svn: 99606
2010-03-26 04:13:46 +00:00
Anders Carlsson
5670d96524
More cleanup.
...
llvm-svn: 99605
2010-03-26 04:10:39 +00:00
Anders Carlsson
a208b3997d
Way more VTT builder cleanup.
...
llvm-svn: 99604
2010-03-26 03:56:54 +00:00
John McCall
1a78217721
Apparently that didn't work. Reverting for now.
...
llvm-svn: 99601
2010-03-26 02:38:45 +00:00
Douglas Gregor
bb3d786213
Reinstate change to non-type template arguments of integral type, so
...
that we extend/truncate then correct the sign to convert the non-type
template argument to the template parameter's type. Previously, we
reported an error when the non-type template argument was out of
range; now we just warn.
llvm-svn: 99600
2010-03-26 02:38:37 +00:00
Evan Cheng
00a620c61e
Allow trivial sibcall of vararg callee when no arguments are being passed.
...
llvm-svn: 99598
2010-03-26 02:13:13 +00:00
Evan Cheng
eb50ac5ccc
LiveVariables should clear kill / dead markers first. This allows us to remove a hack in the scheduler.
...
llvm-svn: 99597
2010-03-26 02:12:24 +00:00
John McCall
a5beaf6958
Properly instantiate and link in friend function templates.
...
llvm-svn: 99596
2010-03-26 02:05:14 +00:00
Ted Kremenek
c5260901e9
Update test case since c-index-test now works on invalid sources.
...
llvm-svn: 99595
2010-03-26 01:34:53 +00:00
Ted Kremenek
014e70b797
Return translation units from clang_createTranslationUnitFromSource()
...
if even they contain errors.
llvm-svn: 99594
2010-03-26 01:34:51 +00:00
Johnny Chen
5d4e917d9f
Add N2RegVShLFrm and N2RegVShRFrm formats so that the disassembler can easily
...
dispatch to the appropriate routines to handle the different interpretations of
the shift amount encoded in the imm6 field. The Vd, Vm fields are interpreted
the same between the two, though.
See, for example, A8.6.367 VQSHL, VQSHLU (immediate) for N2RegVShLFrm format and
A8.6.368 VQSHRN, VQSHRUN for N2RegVShRFrm format.
llvm-svn: 99590
2010-03-26 01:07:59 +00:00
Jeffrey Yasskin
bfd38abbed
Avoid leaking argv and env arrays from lli.
...
llvm-svn: 99589
2010-03-26 00:59:12 +00:00