Eric Christopher
2ccc1aa696
Rework arm fast isel branch and compare code.
...
llvm-svn: 114226
2010-09-17 22:28:18 +00:00
Douglas Gregor
29d907de03
When we run into an error parsing or type-checking the left-hand side
...
of a binary expression, continue on and parse the right-hand side of
the binary expression anyway, but don't call the semantic actions to
type-check. Previously, we would see the error and then, effectively,
skip tokens until the end of the statement.
The result should be more useful recovery, both in the normal case
(we'll actually see errors beyond the first one in a statement), but
it also helps code completion do a much better job, because we do
"real" code completion on the right-hand side of an invalid binary
expression rather than completing with the recovery completion. For
example, given
x = p->y
if there is no variable named "x", we can still complete after the p->
as a member expression. Along the recovery path, we would have
completed after the "->" as if we were in an expression context, which
is mostly useless.
llvm-svn: 114225
2010-09-17 22:25:06 +00:00
Fariborz Jahanian
b3e8712a14
Diagnose use of incomplete type on method argument type of
...
method definitions instead of crashing in code gen.
Fixes radar 8421082.
llvm-svn: 114223
2010-09-17 22:07:07 +00:00
Evan Cheng
b08377e0db
Machine CSE was forgetting to clear some data structures.
...
llvm-svn: 114222
2010-09-17 21:59:42 +00:00
Jim Grosbach
6d800f88da
Update tests to handle MC-inst instruction printing of shift operations. The
...
legacy asm printer uses instructions of the form, "mov r0, r0, lsl #3", while
the MC-instruction printer uses the form "lsl r0, r0, #3". The latter mnemonic
is correct and preferred according the ARM documentation (A8.6.98). The former
are pseudo-instructions for the latter.
llvm-svn: 114221
2010-09-17 21:58:46 +00:00
Evan Cheng
0dcd3362bd
Fix a potential bug that can cause miscomparison with and without debug info.
...
llvm-svn: 114220
2010-09-17 21:56:26 +00:00
Jakob Stoklund Olesen
4a253e5ac8
Don't include <fenv.h> now that we have llvm/System/FEnv.h.
...
llvm-svn: 114219
2010-09-17 21:47:03 +00:00
Jim Grosbach
4a5e54021a
FileCheck-ize
...
llvm-svn: 114218
2010-09-17 21:46:16 +00:00
Douglas Gregor
21fd023d44
Update C++0x status
...
llvm-svn: 114217
2010-09-17 21:37:49 +00:00
Jim Grosbach
132a0ce787
Hook up verbose asm comment printing for SOImm operands in MC printer
...
llvm-svn: 114215
2010-09-17 21:33:25 +00:00
Jim Grosbach
4e51d0bebb
trailing whitespace
...
llvm-svn: 114212
2010-09-17 21:25:10 +00:00
Jim Grosbach
757732c25e
trailing whitespace
...
llvm-svn: 114211
2010-09-17 21:23:56 +00:00
Johnny Chen
b219d281b0
Changed test case method names.
...
llvm-svn: 114210
2010-09-17 21:14:02 +00:00
Chris Lattner
bb3bcd868a
fix rdar://8445858 - __sync_* intrinsics erroneously reject ObjC pointers
...
llvm-svn: 114209
2010-09-17 21:12:38 +00:00
Fariborz Jahanian
aaf44b2237
Only assignment operator triggers property setter call.
...
Fixes radar 8437253.
llvm-svn: 114207
2010-09-17 20:45:45 +00:00
Jim Grosbach
20da4e360b
Move thumb2 tests to the thumb2 directory
...
llvm-svn: 114206
2010-09-17 20:34:09 +00:00
Oscar Fuentes
bcc8b2f9e5
cmake: test for the presence of fenv.h
...
llvm-svn: 114205
2010-09-17 20:30:48 +00:00
Jim Grosbach
9b0cd20f72
tweak test to check instructions rather than relying on the comment string
...
llvm-svn: 114204
2010-09-17 20:27:26 +00:00
Douglas Gregor
f9088c93be
When traversing an InitListExpr, there may not be a syntactic form;
...
check for NULL and visit the InitListExpr we have if there is no
syntactic form.
llvm-svn: 114203
2010-09-17 20:26:51 +00:00
Dan Gohman
f3a9c464b4
Fix this test to avoid an "inexact" fold.
...
llvm-svn: 114202
2010-09-17 20:25:43 +00:00
Dan Gohman
534db8a5c8
Avoid emitting a PIC base register if no PIC addresses are needed.
...
This fixes rdar://8396318.
llvm-svn: 114201
2010-09-17 20:24:24 +00:00
Jim Grosbach
f3ceecec7e
tweak test to check instructions rather than relying on the comment string
...
llvm-svn: 114200
2010-09-17 20:21:03 +00:00
Jim Grosbach
c18a460adc
tweak test to check instructions rather than relying on the comment string
...
llvm-svn: 114199
2010-09-17 20:17:41 +00:00
Dan Gohman
695312637c
Fix this test so that folding doesn't depend on a potentially
...
"inexact" result.
llvm-svn: 114198
2010-09-17 20:15:53 +00:00
Dan Gohman
df25777f78
Regenerate.
...
llvm-svn: 114197
2010-09-17 20:08:35 +00:00
Dan Gohman
b48f904602
Attempt to support platforms which don't have fenv.h.
...
llvm-svn: 114196
2010-09-17 20:06:27 +00:00
Jim Grosbach
1287f4f3b8
Add skeleton infrastructure for the ARMMCCodeEmitter class. Patch by Jason Kim!
...
llvm-svn: 114195
2010-09-17 18:46:17 +00:00
Johnny Chen
aec0c322d3
Fixed build error of LLDBWrapPython.cpp by removing the "protected" access modifier.
...
llvm-svn: 114194
2010-09-17 18:39:57 +00:00
Shantonu Sen
afeb03b41d
Driver: implement driver automagic support for -lcc_kext
...
Rewrite linker arguments to use libclang_rt.cc_kext.a
instead of gcc-specific libcc_kext.a
Resolves Radar 7808495
llvm-svn: 114193
2010-09-17 18:39:08 +00:00
David Chisnall
dd84ef1e62
Add a -ftrapv-handler= option which allows a handler to invoke instead of simply aborting when a signed operation overflows. This mirrors the (GCC-incompatible) behaviour from clang 1.0 and 1.1 when -ftrapv was specified, but allows the handler to be defined for each compilation unit.
...
llvm-svn: 114192
2010-09-17 18:29:54 +00:00
Jim Grosbach
0d35df1cfe
handle the upper16/lower16 target operand flags on symbol references for MC
...
instruction lowering.
llvm-svn: 114191
2010-09-17 18:25:25 +00:00
Chris Lattner
cea0a8d7ae
fix rdar://8444631 - encoder crash on 'enter'
...
What a weird instruction.
llvm-svn: 114190
2010-09-17 18:02:29 +00:00
Gabor Greif
89c416ca98
fix comments; patch by Edmund Grimley-Evans\!
...
llvm-svn: 114189
2010-09-17 17:52:00 +00:00
Greg Clayton
e2ae97f267
We now have SBStream that mirrors the generic stream classes we
...
use inside lldb (lldb_private::StreamFile, and lldb_private::StreamString).
llvm-svn: 114188
2010-09-17 17:42:16 +00:00
Argyrios Kyrtzidis
d059997000
Use a temporary file for output which gets renamed after all the writing is finished.
...
This mainly prevents failures and/or crashes when multiple processes try to read/write the same PCH file. (rdar://8392711&8294781); suggestion & review by Daniel!
llvm-svn: 114187
2010-09-17 17:38:48 +00:00
Duncan Sands
922563cc6d
Some of the tests build an executable with llvm-gcc. For this to work, llvm-gcc
...
needs to find some libraries, which may require searching the directories given
by LIBRARY_PATH on curiously configured systems. So pass on LIBRARY_PATH.
llvm-svn: 114186
2010-09-17 17:05:27 +00:00
John McCall
00f1a67ad3
Fix test for no-asserts builds.
...
llvm-svn: 114185
2010-09-17 17:03:41 +00:00
Daniel Dunbar
baad46c6ee
Fix an MSVC warning.
...
llvm-svn: 114184
2010-09-17 16:34:24 +00:00
Jim Grosbach
a7d430b51c
expand PICLDR MC lowering to handle other PICLDR and PICSTR versions.
...
llvm-svn: 114183
2010-09-17 16:25:52 +00:00
Fariborz Jahanian
5bbd1b0051
Patch to add IRgen support for Gnu's conditional operator
...
extension when missing LHS. This patch covers scalar
conditionals only. Others are wip.
(pr7726, radar 8353567).
llvm-svn: 114182
2010-09-17 15:51:28 +00:00
Daniel Dunbar
35a7a0ee2e
MC/Mach-O/i386: Fix a crash in relocation handling.
...
llvm-svn: 114176
2010-09-17 15:21:50 +00:00
NAKAMURA Takumi
ab5077ab71
Move the declaration SetInformationJobObject() outside of namespace.
...
It is also workaround for PR7927.
llvm-svn: 114175
2010-09-17 11:14:18 +00:00
Gabor Greif
433c9e146a
rename variable, 'Type' seems to be present in
...
the enclosing scope, which confuses gcc v3.4 to no end
llvm-svn: 114174
2010-09-17 10:21:45 +00:00
NAKAMURA Takumi
018f965a77
AlphaSchedule.td: 7bit-ize.
...
llvm-svn: 114173
2010-09-17 09:56:43 +00:00
Daniel Dunbar
00aff04c8d
Driver/DarwinClang: Add GCC libexec paths so we can find the cc1 binaries if we
...
ever use fallback.
- Not necessary for clang as a compiler, but useful for testing purposes.
llvm-svn: 114172
2010-09-17 08:22:12 +00:00
Daniel Dunbar
195fa00399
IRgen: Change CodeGenPasses to be a PassManager, so it can have CallGraphSCC or
...
Module. Patch by Mike Gist!
llvm-svn: 114171
2010-09-17 07:35:16 +00:00
Michael J. Spencer
386fe51f64
docs: Update GettingStartedVS to reflect current state.
...
llvm-svn: 114167
2010-09-17 06:33:20 +00:00
Daniel Dunbar
14287de654
Reapply "Driver/Darwin: Time for another spin at switching to the DarwinClang",
...
now that eprintf symbol issue is resolved.
llvm-svn: 114166
2010-09-17 04:25:28 +00:00
Daniel Dunbar
a69a595c2b
System: Don't reexport ___eprintf when building with Clang; this symbol isn't
...
used on Darwin anymore, and Clang might not always link with the library it is
currently found in.
llvm-svn: 114165
2010-09-17 04:25:24 +00:00
Daniel Dunbar
e4f65f3885
Revert "Driver/Darwin: Time for another spin at switching to the DarwinClang
...
toolchain.", while I investigate the totally non-surprising ensuing breakage.
llvm-svn: 114164
2010-09-17 03:46:37 +00:00