Dan Gohman
4ac148dcbc
When eliminating unnecessary retain+autorelease on return values,
...
handle the case where the retain is in a different basic block.
rdar://10210274.
llvm-svn: 140815
2011-09-29 22:27:34 +00:00
Dan Gohman
2053a5dd64
Don't eliminate objc_retainBlock calls on stack objects if the
...
objc_retainBlock call is potentially responsible for copying
the block to the heap to extend its lifetime. rdar://10209613.
llvm-svn: 140814
2011-09-29 22:25:23 +00:00
Jim Ingham
c1663048e0
Centralize the warning reporting and use ReportWarning & ReportError everywhere we were using fprintf(stderr directly.
...
llvm-svn: 140813
2011-09-29 22:12:35 +00:00
Eli Friedman
76d4e43063
PR11040: CheckICE should not allow an lvalue bitcast as part of an integer constant expression.
...
llvm-svn: 140812
2011-09-29 21:49:34 +00:00
Johnny Chen
a9b68f4dd6
Modify the delegation chain from MachThreadList -> MachThread -> DNBArchProtocol so that when
...
the watchpoint state is changed, not only does the change propagate to all the thread instances,
it also updates a global debug state, if chosen by the DNBArchProtocol derivative.
Once implemented, the DNBArchProtocol derivative, also makes sure that when new thread comes along,
it tries to inherit from the global debug state, if it is valid.
Modify TestWatchpointMultipleThreads.py to test this functionality.
llvm-svn: 140811
2011-09-29 21:48:52 +00:00
Jim Grosbach
3f030ff016
Tidy up. Formatting.
...
llvm-svn: 140810
2011-09-29 21:43:01 +00:00
Richard Smith
ee6311df69
In C++0x, static const volatile data members cannot be initialized in-class.
...
llvm-svn: 140809
2011-09-29 21:28:14 +00:00
Greg Clayton
624784a987
Free up some space in lldb_private::Block by not requiring a sibling pointer.
...
The old way of storing blocks used to use the sibling pointer, but now all
blocks contain a collection of shared pointers to blocks so this isn't required
anymore and a parent can be asked to find the sibling block for a child block.
llvm-svn: 140808
2011-09-29 21:19:25 +00:00
Nick Lewycky
8574cbfd58
Fix typo.
...
llvm-svn: 140807
2011-09-29 21:07:46 +00:00
Akira Hatanaka
36036412e2
Mips64 arithmetic and logical instructions with two source registers.
...
llvm-svn: 140806
2011-09-29 20:37:56 +00:00
Howard Hinnant
8909cdfff9
Windows port work by Ruben Van Boxem
...
llvm-svn: 140805
2011-09-29 20:33:10 +00:00
Jim Ingham
6626447929
Missed one place where we should use the target's SourceManager, not the debugger's.
...
llvm-svn: 140804
2011-09-29 20:22:33 +00:00
Eli Friedman
95031ed837
Clean up uses of switch instructions so they are not dependent on the operand ordering. Patch by Stepan Dyatkovskiy.
...
llvm-svn: 140803
2011-09-29 20:21:17 +00:00
Richard Smith
1a526fd96c
PR11000: Fix crash on invalid.
...
llvm-svn: 140802
2011-09-29 19:42:27 +00:00
Richard Smith
2316cd8b79
constexpr: semantic checking for constexpr variables.
...
We had an extension which allowed const static class members of floating-point type to have in-class initializers, 'as a C++0x extension'. However, C++0x does not allow this. The extension has been kept, and extended to all literal types in C++0x mode (with a fixit to add the 'constexpr' specifier).
llvm-svn: 140801
2011-09-29 19:11:37 +00:00
Fariborz Jahanian
d71061298c
c - Enumerators may inherit the deprecated/unavailable
...
attributes from the enumeration type.
// rdar://10201690
llvm-svn: 140800
2011-09-29 18:40:01 +00:00
Anna Zaks
196ebceb14
Add more comments to several checker callback functions.
...
llvm-svn: 140797
2011-09-29 18:08:22 +00:00
Peter Collingbourne
2f3cf4b158
Add support for alignment-specifiers in C1X and C++11, remove
...
support for the C++0x draft [[align]] attribute and add the C1X
standard header file stdalign.h
llvm-svn: 140796
2011-09-29 18:04:28 +00:00
Peter Collingbourne
4ce4de8ead
Add a warning group for warnings about using C1X features as extensions
...
llvm-svn: 140795
2011-09-29 18:04:12 +00:00
Peter Collingbourne
49eedecd70
Add support for parsing an attribute-specifier-seq containing multiple
...
attribute-specifiers
llvm-svn: 140794
2011-09-29 18:04:05 +00:00
Peter Collingbourne
70188b3fc2
Add support for parsing the optional attribute-specifier-seq at the
...
end of a decl-specifier-seq
llvm-svn: 140793
2011-09-29 18:03:57 +00:00
Devang Patel
e5a8f2f9f3
Simplify.
...
llvm-svn: 140789
2011-09-29 17:06:40 +00:00
Greg Clayton
4d01ace4fd
If the new .apple_names and .apple_types DWARF accelerator tables
...
are available, we currently will still index the DWARF ourselves
and assert if the name lookups differ. This will help us transition
to the new accelerator tables and make sure they are workng before
we switch over entirely.
llvm-svn: 140788
2011-09-29 16:58:15 +00:00
Devang Patel
eec5c5bf6e
Clarify comments.
...
llvm-svn: 140787
2011-09-29 16:52:53 +00:00
Devang Patel
1e6ee351fc
Remove unnecessary and unused data member.
...
llvm-svn: 140786
2011-09-29 16:48:44 +00:00
Devang Patel
a9e8a2504c
Cosmetic changes, as per Nick's review.
...
llvm-svn: 140785
2011-09-29 16:46:47 +00:00
Duncan Sands
cac86805bf
Place this bracket according to the LLVM style.
...
llvm-svn: 140784
2011-09-29 16:01:46 +00:00
Justin Holewinski
abcc57669d
PTX: Fix broken shared library build
...
llvm-svn: 140783
2011-09-29 14:25:48 +00:00
Peter Collingbourne
3e7644af27
Driver: use correct search paths for multilib
...
llvm-svn: 140782
2011-09-29 13:42:24 +00:00
Howard Hinnant
0c06e58fae
Windows patch work by Ruben Van Boxem
...
llvm-svn: 140781
2011-09-29 13:33:15 +00:00
John McCall
f1e8b34f6c
Add an ns_bridged attribute, used to specify that a
...
pointer to the annotated struct type can be used as an
Objective-C object pointer. If an argument is given, the
type is actually "toll-free bridged" to the specific type
named there, rather than just to 'id'.
For now, we cannot rely on all types being so annotated,
and we'll always have to have exceptions for things like
CFTypeRef (aka const void*), but this is clearly a good
foundation for improving toolage in this area.
llvm-svn: 140779
2011-09-29 07:17:38 +00:00
Ted Kremenek
7fd1723619
Like IBOutletCollection, it only makes sense to apply the IBOutlet annotation to Objective-C object types. Fixes <rdar://problem/10142685>.
...
llvm-svn: 140778
2011-09-29 07:02:25 +00:00
Ted Kremenek
6e302b2e6e
Do not warn about empty format strings when there are no data arguments. Fixes <rdar://problem/9473155>.
...
llvm-svn: 140777
2011-09-29 05:52:16 +00:00
Jakob Stoklund Olesen
dd1904e7a6
Expand the x86 V_SET0* pseudos right after register allocation.
...
This also makes it possible to reduce the number of pseudo instructions
and get rid of the encoding information.
llvm-svn: 140776
2011-09-29 05:10:54 +00:00
David Blaikie
7833b7db1f
Unnecessary else
...
llvm-svn: 140775
2011-09-29 04:06:47 +00:00
NAKAMURA Takumi
15b3c9c684
Target/ARM: Unbreak! CMake! Build!
...
llvm-svn: 140774
2011-09-29 03:32:49 +00:00
Jakob Stoklund Olesen
bf64024a39
Delete NEONMoveFix, now unused.
...
llvm-svn: 140773
2011-09-29 02:56:45 +00:00
Jakob Stoklund Olesen
f7ad189033
Use ExecutionDepsFix instead of NEONMoveFix.
...
This enables NEON domain tracking across basic blocks, but should
otherwise do the same thing.
llvm-svn: 140772
2011-09-29 02:48:41 +00:00
Daniel Dunbar
866fcd34a6
Basic/Diagnostic: Kill off a few unnecessary functions now that refactoring is done, and add a note that the new setDiagnosticGroup{...} methods only operate on the current diagnostic state.
...
llvm-svn: 140771
2011-09-29 02:03:01 +00:00
Daniel Dunbar
58d0af6c5f
Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings.
...
- This fixes a host of obscure bugs with regards to how warning mapping options composed with one another, and I believe makes the code substantially easier to read and reason about.
llvm-svn: 140770
2011-09-29 01:58:05 +00:00
Andrew Trick
168dfffdb8
typo + pasto
...
llvm-svn: 140769
2011-09-29 01:53:08 +00:00
Daniel Dunbar
fffcf21cf2
Basic/Diagnostics: Add three explicit bits to DiagnosticMappingInfo to track "no-warning-as-error", "no-error-as-fatal", and "show-in-system-header", and update DiagnosticsEngine::setDiagnosticGroup{WarningAsError,ErrorAsFatal} and GetDefaultDiagMappingInfo to set them appropriately.
...
- No actual functionality change for now, we still also use the diag::Mapping::{MAP_WARNING_NO_ERROR,MAP_ERROR_NO_FATAL,MAP_WARNING_SHOW_IN_SYSTEM_HEADER} for a little while longer.
llvm-svn: 140768
2011-09-29 01:52:06 +00:00
Jakob Stoklund Olesen
463b05a2d0
Remove NumImplicitOps which is now unused.
...
llvm-svn: 140767
2011-09-29 01:47:36 +00:00
Daniel Dunbar
d908c12db8
Basic/Diagnostics: Add a DiagnosticIDs::getDiagnosticsInGroup method, and use
...
that in DiagnosticEngine instead of the convoluted calling into DiagnosticIDs
which then calls back into the DiagnosticsEngine.
llvm-svn: 140766
2011-09-29 01:47:16 +00:00
Daniel Dunbar
e8c12a2979
Basic/Diagnostic: Add a DiagSate::getOrAddMappingInfo method.
...
- Also, spell const_iterator as const_iterator.
llvm-svn: 140765
2011-09-29 01:42:25 +00:00
Daniel Dunbar
e9a700cba1
tests: Add some more tests for warning mappings.
...
llvm-svn: 140764
2011-09-29 01:37:40 +00:00
Daniel Dunbar
458edfa2b7
Basic/Diagnostics: Move setDiagnosticMapping() to using DiagnosticMappingInfo
...
and eliminate setDiagnosticMappingInternal.
llvm-svn: 140763
2011-09-29 01:34:47 +00:00
Andrew Trick
bc6de90a5f
LSR: rewrite inner loops only.
...
Rewriting the entire loop nest now requires -enable-lsr-nested.
See PR11035 for some performance data.
A few unit tests specifically test nested LSR, and are now under a flag.
llvm-svn: 140762
2011-09-29 01:33:38 +00:00
Andrew Trick
37470d5bde
whitespace
...
llvm-svn: 140761
2011-09-29 01:31:48 +00:00
Daniel Dunbar
a3637e6894
Basic/Diagnostics: Add a DiagnosticMappingInfo helper class, and switch to
...
storing mappings with that instead of straying some magic constants about the
source.
llvm-svn: 140760
2011-09-29 01:30:00 +00:00