Julien Lerouge
d25ed06c63
Make this test portable on Win32.
...
llvm-svn: 139464
2011-09-10 05:46:15 +00:00
David Blaikie
e5f9a9e603
Show either a location or a fixit note, not both, for uninitialized variable warnings.
...
llvm-svn: 139463
2011-09-10 05:35:08 +00:00
John McCall
5dc5c1ea47
Missed a %local use; hopefully this clears this test up.
...
llvm-svn: 139462
2011-09-10 05:31:57 +00:00
Richard Trieu
7fde916498
Fix a broken assert in AST/DeclCXX.cpp.
...
llvm-svn: 139461
2011-09-10 02:16:48 +00:00
Eli Friedman
5c917278fd
clang part of r139458; un-XFAIL testcase.
...
llvm-svn: 139460
2011-09-10 02:03:28 +00:00
Eli Friedman
501f541b45
Really un-XFAIL the testcase, like I said I would in r139458.
...
llvm-svn: 139459
2011-09-10 02:02:27 +00:00
Eli Friedman
7f50e00203
r139454 activates an assert in a case where we were doing the right thing anyway. Make that explicit, and un-XFAIL the testcase.
...
llvm-svn: 139458
2011-09-10 02:01:42 +00:00
Richard Trieu
c41773ab6a
Revision 139454 fixed a broken assert in LLVM, which causes
...
a test failure in CodeGen/palignr.c, which has been marked
XFAIL for the time being. A bug has been filed at PR10901
for this issue.
llvm-svn: 139457
2011-09-10 01:56:32 +00:00
Richard Trieu
74996f2a79
Fix the asserts in lib/Target/X86/X86ELFWriterInfo.cpp and
...
lib/ExecutionEngine/MCJIT/MCJIT.cpp from:
assert("error");
to:
assert(0 && "error");
llvm-svn: 139456
2011-09-10 01:42:07 +00:00
John McCall
e5e7e6bc84
Make this test not depend on unnecessary details and IR variable names.
...
llvm-svn: 139455
2011-09-10 01:37:23 +00:00
Richard Trieu
d9917bef6c
Fixed an assert from:
...
assert("not implemented for target shuffle node");
to:
assert(0 && "not implemented for target shuffle node");
This causes a test failure in CodeGen/X86/palignr.ll which has
been marked as XFAIL for the time being.
Test failure filed at PR10901.
llvm-svn: 139454
2011-09-10 01:26:21 +00:00
Andrew Trick
c7868bf064
[disable-iv-rewrite] Allow WidenIV to handle NSW/NUW operations
...
better.
Don't immediately give up when an add operation can't be trivially
sign/zero-extended within a loop. If it has NSW/NUW flags, generate a
new expression with sign extended (non-recurrent) operand. As before,
if SCEV says that all sign extends are loop invariant, then we can
widen the operation.
llvm-svn: 139453
2011-09-10 01:24:17 +00:00
Johnny Chen
0a57b2382b
Convert OptionGroupVariable.cpp to use the arraysize() template function, as well.
...
llvm-svn: 139452
2011-09-10 01:19:01 +00:00
John McCall
cd78e805e9
When converting a block pointer to an Objective-C pointer type, extend
...
the lifetime of the block by copying it to the heap, or else we'll get
a dangling reference because the code working with the non-block-typed
object will not know it needs to copy.
There is some danger here, e.g. with assigning a block literal to an
unsafe variable, but, well, it's an unsafe variable.
llvm-svn: 139451
2011-09-10 01:16:55 +00:00
Andrew Trick
a51d74fc35
Set NSW/NUW flags on SCEVAddExpr when the operation is flagged as
...
such.
I'm doing this now for completeness because I can't think of/remember
any reason that it was left out. I'm not sure it will help anything,
but if we don't do it we need to explain why in comments.
llvm-svn: 139450
2011-09-10 01:09:50 +00:00
Richard Trieu
78a812bf2d
Fix asserts in CodeGen from:
...
assert("error");
to:
assert(0 && "error");
llvm-svn: 139449
2011-09-10 01:07:54 +00:00
Greg Clayton
28469ca3a5
Quick fixes to the PE COFF file loader.
...
llvm-svn: 139448
2011-09-10 01:04:42 +00:00
Johnny Chen
28dda8eebc
Add comment.
...
llvm-svn: 139447
2011-09-10 01:01:44 +00:00
Douglas Gregor
97e3590a6e
Fix a diagnostics crasher with -Wmissing-noreturn in Objective-C
...
methods, and improve the diagnostic slightly along the way. Fixes
<rdar://problem/10098695>.
llvm-svn: 139446
2011-09-10 00:56:20 +00:00
Chandler Carruth
73fddfe1b0
Fix a -Wreturn-type warning due to this field not explicitly having the
...
enumeration type.
llvm-svn: 139445
2011-09-10 00:51:24 +00:00
Johnny Chen
7c575b3b3a
Refactoring: replace a bunch of static array size computation or hardcoded constant
...
with a template function 'arraysize(static_array)', defined in Utils.h.
llvm-svn: 139444
2011-09-10 00:48:33 +00:00
Devang Patel
964d758d17
Emit debug info for wchar_t.
...
llvm-svn: 139443
2011-09-10 00:44:49 +00:00
Douglas Gregor
abc5fbe9d6
Don't crash when we fail to load a module. It's unbecoming of a
...
well-bred compiler like Clang.
llvm-svn: 139442
2011-09-10 00:30:18 +00:00
Douglas Gregor
87d8124b0e
Clean up our handling of Objective-C definitions in AST files. Rather
...
than having CodeGen check whether a declaration comes from an AST file
(which it shouldn't know or care about), make sure that the AST writer and
reader pass along "interesting" declarations that CodeGen needs to
know about.
llvm-svn: 139441
2011-09-10 00:22:34 +00:00
Jim Grosbach
b908b7af31
Thumb2 parsing and encoding for MOV(immediate).
...
Some aliases for MOV(register) also to keep existing T1 tests happy when
run in thumbv7 mode.
llvm-svn: 139440
2011-09-10 00:15:36 +00:00
Anna Zaks
dfbea6b244
[analyzer] -analyze-function for ObjectiveC should check if any of the methods match the name (not only the first one).
...
llvm-svn: 139439
2011-09-10 00:12:23 +00:00
Douglas Gregor
98c05b286c
Kill of the Decl::PCHLevel field entirely. We now only need to know
...
whether a Decl was deserialized from an AST file (any AST file).
llvm-svn: 139438
2011-09-10 00:09:20 +00:00
Chandler Carruth
a626d645d5
Extend the Stmt AST to make it easier to look through label, default,
...
and case statements. Use this to make the logic in the CFG builder more
robust at finding the actual statements within a compound statement,
even when there are many layers of labels obscuring it.
Also extend the test cases for a large chunk of PR10063. Still more work
to do here though.
llvm-svn: 139437
2011-09-10 00:02:34 +00:00
Douglas Gregor
1bbf030b8e
The translation unit is never deserialized
...
llvm-svn: 139436
2011-09-09 23:34:14 +00:00
Enrico Granata
78d0638b7d
Renaming a bulk of method calls from Get() to something more descriptive
...
llvm-svn: 139435
2011-09-09 23:33:14 +00:00
Johnny Chen
b1d7529e57
Add OptionGroupWatchpoint.cpp/.h (preparatory work) for hooking up watchpoint to the 'frame variable' comand.
...
To watch a variable for read/write, issue:
frame variable -w read_write
Note that '-w' option is not working yet. :-)
llvm-svn: 139434
2011-09-09 23:25:26 +00:00
Akira Hatanaka
5624707684
Fix test cases.
...
Generate code for Mips32r1 unless a Mips32r2 feature is tested.
llvm-svn: 139433
2011-09-09 23:14:58 +00:00
Owen Anderson
53db43b560
LDM writeback is not allowed if Rn is in the target register list.
...
llvm-svn: 139432
2011-09-09 23:13:33 +00:00
Owen Anderson
eb3f0fbdce
Fix an ambiguously nested if.
...
llvm-svn: 139431
2011-09-09 23:13:02 +00:00
Douglas Gregor
dd57400c06
Eliminate all but one caller of Decl::getPCHLevel()
...
llvm-svn: 139430
2011-09-09 23:07:59 +00:00
Owen Anderson
93cd31869b
Fix buildbot breakage caused by r139415. I missed one instance of a manually create ARM::tB.
...
llvm-svn: 139429
2011-09-09 23:05:14 +00:00
Greg Clayton
bf2331c491
Added the ability to introspect types thourgh the public SBType interface.
...
Fixed up many API calls to not be "const" as const doesn't mean anything to
most of our lldb::SB objects since they contain a shared pointer, auto_ptr, or
pointer to the types which circumvent the constness anyway.
llvm-svn: 139428
2011-09-09 23:04:00 +00:00
Douglas Gregor
b3722e2223
Introduce a new predicate Decl::isFromASTFile() to determine whether a
...
declaration was deserialized from an AST file. Use this instead of
Decl::getPCHLevel() wherever possible. This is a simple step toward
killing off Decl::getPCHLevel().
llvm-svn: 139427
2011-09-09 23:01:35 +00:00
Caitlin Sadowski
82e2de512e
Thread safety: removing unnecessary import and reordering import list
...
llvm-svn: 139426
2011-09-09 23:00:59 +00:00
Caitlin Sadowski
0bef2279fb
Thread safety: removing unnecessary import
...
llvm-svn: 139425
2011-09-09 22:49:12 +00:00
Julien Lerouge
e0d5fad37b
Remove trailing } in comment.
...
llvm-svn: 139424
2011-09-09 22:46:39 +00:00
Julien Lerouge
5a6b6987dc
Bring llvm.annotation* intrinsics support back to where it was in llvm-gcc: can
...
annotate global, local variables, struct fields, or arbitrary statements (using
the __builtin_annotation), rdar://8037476.
llvm-svn: 139423
2011-09-09 22:41:49 +00:00
Owen Anderson
5bfb0e0a85
Fix assembly/disassembly of Thumb2 ADR instructions with immediate operands.
...
llvm-svn: 139422
2011-09-09 22:24:36 +00:00
Akira Hatanaka
8b983d9773
O64 will not be supported.
...
llvm-svn: 139421
2011-09-09 22:22:48 +00:00
Akira Hatanaka
be159b5f2d
Make F31 and D15 non-reserved registers.
...
llvm-svn: 139420
2011-09-09 22:11:26 +00:00
Chris Lattner
e74e0c8020
tidy up a bit
...
llvm-svn: 139419
2011-09-09 22:06:59 +00:00
Douglas Gregor
51825b49f3
In the ASTReader, replace the never-NULL Preprocessor pointer with a
...
Preprocessor reference. Simplify some code along the way, so there is
no separate "initialize the preprocessor" step.
llvm-svn: 139418
2011-09-09 22:02:16 +00:00
Kaelyn Uhrain
45e9370a24
Add smarter sorting of overload candidates that failed template deduction.
...
llvm-svn: 139417
2011-09-09 21:58:49 +00:00
Eric Christopher
65c5c9132f
Carry the debug information from single exit unified return block
...
along with the new insert point.
Fixes PR10829
llvm-svn: 139416
2011-09-09 21:53:04 +00:00
Owen Anderson
29cfe6c368
Thumb unconditional branches are allowed in IT blocks, and therefore should have a predicate operand, unlike conditional branches.
...
llvm-svn: 139415
2011-09-09 21:48:23 +00:00