Evan Cheng
6e7ca24907
Remove DBG_VALUE which reference dead stack slots.
...
llvm-svn: 102654
2010-04-29 18:51:00 +00:00
Devang Patel
a46953d281
DO not push DBG_VALUE machine instructions for inlined fuction arguments in entry block.
...
llvm-svn: 102653
2010-04-29 18:50:36 +00:00
Evan Cheng
d433757315
Add DenseMapInfo for int.
...
llvm-svn: 102652
2010-04-29 18:50:35 +00:00
Dan Gohman
0cc5629f4e
llc no longer requires the -f option to overwrite files.
...
llvm-svn: 102651
2010-04-29 18:46:52 +00:00
Douglas Gregor
980fb16f9a
When determining a standard conversion sequence involves resolving the
...
address of an overloaded function (or function template), perform that
resolution prior to determining the implicit conversion
sequence. This resolution is not part of the implicit conversion
sequence itself.
Previously, we would always consider this resolution to be a
function pointer decay, which was a lie: there might be an explicit &
in the expression, in which case decay should not occur. This caused
the CodeGen assertion in PR6973 (where we created a
pointer to a pointer to a function when we should have had a pointer
to a function), but it's likely that there are corner cases of
overload resolution where this would have failed.
Cleaned up the code involved in determining the type that will
produced afer resolving the overloaded function reference, and added
an assertion to make sure the result is correct. Fixes PR6973.
llvm-svn: 102650
2010-04-29 18:24:40 +00:00
Bob Wilson
1905e2be86
Don't remove libLTO.dylib if it's not being installed in Developer/usr/lib;
...
just leave it in Developer/usr/local/lib.
llvm-svn: 102646
2010-04-29 18:04:29 +00:00
Fariborz Jahanian
9e1a3af030
Properties cannot be synthesized by-dafult in
...
categories. Issue usual warnings instead of
confusing error message. Radar 7920807
llvm-svn: 102645
2010-04-29 17:52:18 +00:00
Devang Patel
dfcd0661a1
Use clang::VarDecl name instead of llvm::GlobalVariable name.
...
llvm::GLobalVariable name may not match user visibile name for function static variables.
llvm-svn: 102644
2010-04-29 17:48:37 +00:00
Ted Kremenek
3b9ad93a35
Add USR support for 'static inline' functions (which can be declared in header files).
...
Add USR support for 'static' functions and local variables, which can be handy for resolving named variables within a translation unit.
llvm-svn: 102641
2010-04-29 17:43:29 +00:00
Ted Kremenek
9825536eea
Remove USRGenerator::VisitBlockDecl(). We don't need to generate USRs for blocks, since
...
they have no linkage and by definition are anonymous.
llvm-svn: 102640
2010-04-29 17:43:26 +00:00
Ted Kremenek
772810137a
Add test case for __has_feature(objc_weak_class).
...
llvm-svn: 102639
2010-04-29 17:43:21 +00:00
Nate Begeman
23a2f2ff79
Start stamping out the __builtin_neon stuff.
...
llvm-svn: 102638
2010-04-29 17:37:19 +00:00
Dan Gohman
4695c20f8c
Elaborate on a comment.
...
llvm-svn: 102637
2010-04-29 16:57:54 +00:00
Ted Kremenek
186a074346
Add FunctionDecl::isVariadic() to match BlockDecl::isVariadic() and ObjCMethodDecl::isVariadic().
...
Do some minor refactoring along the way.
llvm-svn: 102635
2010-04-29 16:49:01 +00:00
Ted Kremenek
8af4f40f4a
Rename BlockDecl::IsVariadic() to BlockDecl::isVariadic() to match the casing
...
for similar methods. No functionality change.
llvm-svn: 102634
2010-04-29 16:48:58 +00:00
Daniel Dunbar
0c00537583
IRgen/NeXT: Put the synthesized _objc_super, _message_ref_t decls in a valid DeclContext, to satisfy the invariants that should hold on a RecordDecl.
...
llvm-svn: 102624
2010-04-29 16:29:11 +00:00
Daniel Dunbar
50aa0a528d
Remove a FIXME that is unlikely to be fixed (streaming code generation).
...
llvm-svn: 102623
2010-04-29 16:29:09 +00:00
Daniel Dunbar
117c19fa4d
Frontend: Tie backend verification passes to CodeGenOptions::VerifyModule,
...
instead of NDEBUG.
llvm-svn: 102622
2010-04-29 16:29:06 +00:00
Daniel Dunbar
c1626e3317
Remove dead option.
...
llvm-svn: 102621
2010-04-29 16:29:02 +00:00
Duncan Sands
76d6217906
Verify metadata harder. In particular, check that module
...
level metadata does not have any function local operands.
This would have caught the problem found in PR6112.
llvm-svn: 102620
2010-04-29 16:10:30 +00:00
Ted Kremenek
bf2de212c6
Bump Clang version number.
...
llvm-svn: 102614
2010-04-29 15:30:51 +00:00
Duncan Sands
d4886f1fbe
Fix comment typo.
...
llvm-svn: 102612
2010-04-29 12:32:45 +00:00
Evan Cheng
5c864b42b2
Add comment.
...
llvm-svn: 102606
2010-04-29 06:58:53 +00:00
Torok Edwin
63dd86352e
Fix PR6910.
...
Limit alignment in SmallVector 8, otherwise GCC assumes 16 byte alignment.
opetaror new, and malloc only return 8-byte aligned memory on 32-bit Linux,
which cause a crash if code is compiled with -O3 (or -ftree-vectorize) and some
SmallVector code is vectorized.
llvm-svn: 102604
2010-04-29 06:43:12 +00:00
Evan Cheng
923679f929
Re-enable 102565 with fixes.
...
llvm-svn: 102602
2010-04-29 06:33:38 +00:00
Douglas Gregor
9225b02096
When performing partial ordering of class template partial
...
specializations, substitute the deduced template arguments and check
the resulting substitution before concluding that template argument
deduction succeeds. This marvelous little fix makes a bunch of
Boost.Spirit tests start working.
llvm-svn: 102601
2010-04-29 06:31:36 +00:00
Douglas Gregor
684268daab
For template argument deduction from class template partial
...
specializations, separate out the deduction part from the checking and
substitution of the deduced arguments.
llvm-svn: 102600
2010-04-29 06:21:43 +00:00
Nick Lewycky
d16766e091
Fix typo.
...
llvm-svn: 102599
2010-04-29 05:54:29 +00:00
Mon P Wang
75c645c6d7
A not equal for an unordered relation should return true as specified in IEEE-754, e.g.,
...
NAN != NAN ? 1 : 0 should return 1. Also fix the case for complex.
llvm-svn: 102598
2010-04-29 05:53:29 +00:00
Evan Cheng
38dfa5cf20
Load folding tail call should not use ebp / rbp after it's popped. PEI
...
should use esp / rsp to reference frame instead.
llvm-svn: 102596
2010-04-29 05:08:22 +00:00
Douglas Gregor
33dcc2e34d
It turns out that we *can* end up having to display template argument
...
bindings when the template argument is still an expression; it happens
while checking the template arguments of a class template partial
specializations. Fixes PR6964.
llvm-svn: 102595
2010-04-29 04:55:13 +00:00
Mon P Wang
b0a0a26df1
Add support for assemblers that don't support periods in a name
...
llvm-svn: 102594
2010-04-29 04:00:56 +00:00
Evan Cheng
d65a1e782b
Temporarily disable my changes to unbreak the build.
...
llvm-svn: 102590
2010-04-29 03:34:19 +00:00
Ted Kremenek
e506ddc71e
Add '__has_feature' support for weak ObjC classes.
...
llvm-svn: 102588
2010-04-29 02:06:46 +00:00
Ted Kremenek
6459939112
Sort '__has_feature' cases. No functionality change.
...
llvm-svn: 102587
2010-04-29 02:06:42 +00:00
Evan Cheng
5fb45a2b85
Do not generate duplicate dbg_value instructions for function arguments.
...
llvm-svn: 102585
2010-04-29 01:40:30 +00:00
Dan Gohman
d9e7322c9a
Fix missing #include.
...
llvm-svn: 102584
2010-04-29 01:39:13 +00:00
Evan Cheng
70a0145d7c
Avoid emitting a dbg_value machineinstr that's not going to be inserted into entry block.
...
llvm-svn: 102581
2010-04-29 01:23:55 +00:00
John McCall
17b61785a3
Test case for r102578.
...
llvm-svn: 102580
2010-04-29 01:20:45 +00:00
John McCall
e23b871c4b
Access-check during template argument deduction from the context of the
...
template decl itself, not its context. Testcase to follow; fixes selfhost.
llvm-svn: 102578
2010-04-29 01:18:58 +00:00
Evan Cheng
250e917e9d
Frame index can be negative.
...
llvm-svn: 102577
2010-04-29 01:13:30 +00:00
Ted Kremenek
989da5eeff
Fix CFG crasher involving statement expressions reported in PR 6938.
...
llvm-svn: 102576
2010-04-29 01:10:26 +00:00
Evan Cheng
f4336ebb2a
Check Reg against zero.
...
llvm-svn: 102573
2010-04-29 00:59:34 +00:00
John McCall
80e58cd3e9
Properly switch into the declaring scope of a template when performing
...
template argument deduction or (more importantly) the final substitution
required by such deduction. Makes access control magically work in these
cases.
Fixes PR6967.
llvm-svn: 102572
2010-04-29 00:35:03 +00:00
Douglas Gregor
d170206761
Teach __builtin_offsetof to compute the offsets of members of base
...
classes, since we only warn (not error) on offsetof() for non-POD
types. We store the base path within the OffsetOfExpr itself, then
evaluate the offsets within the constant evaluator.
llvm-svn: 102571
2010-04-29 00:18:15 +00:00
Evan Cheng
a5a8f76cea
- Really preserve dbg_value instructions when the register is spilled.
...
- Also, update dbg_value is the value is being re-matted from a frame slot, e.g. fixed slots for arguments.
llvm-svn: 102565
2010-04-28 23:52:26 +00:00
Daniel Dunbar
92d5c1a4bf
build: Add CLANG_NO_RUNTIME build variable, which disables building clang
...
runtime library stuff, even if compiler-rt is available.
llvm-svn: 102560
2010-04-28 23:36:26 +00:00
Daniel Dunbar
12c82080a2
Driver: Add support for -fobjc-abi-version=.
...
- <rdar://problem/7919678>
llvm-svn: 102559
2010-04-28 23:25:24 +00:00
Devang Patel
bb728e17d3
tidy up.
...
llvm-svn: 102558
2010-04-28 23:24:13 +00:00
Kevin Enderby
4822841b82
Fixed the word sized Bit Scan Forward/Reverse instructions, they needed the
...
Operand size override prefix to be part of their records.
llvm-svn: 102556
2010-04-28 23:20:40 +00:00