Nick Lewycky
90e6a4e5d5
Needs a triple.
...
llvm-svn: 133634
2011-06-22 19:42:14 +00:00
Douglas Gregor
3bde9b15a1
Copy diagnostic pragmas to the preprocessed output, from Richard Osborne!
...
llvm-svn: 133633
2011-06-22 19:41:48 +00:00
Howard Hinnant
471e111324
In cxa_demangle.cpp, rewrite __parse_unresolved_name to reflect updated understanding and sync with updated clang mangling. Also fix think-o in __parse_encoding enabling the parsing of trailing .eh and .b.
...
llvm-svn: 133632
2011-06-22 19:27:39 +00:00
Nick Lewycky
6208a2fd66
Emit trailing padding on constant vectors when TargetData says that the vector
...
is larger than the sum of the elements (including per-element padding).
llvm-svn: 133631
2011-06-22 18:55:03 +00:00
Douglas Gregor
bb9a5e6df1
Fix the starting location of the Fix-It note for suspicious precedence
...
issues between a bitwise operator and a comparison operator. Fixes
<rdar://problem/9637759>.
llvm-svn: 133630
2011-06-22 18:41:08 +00:00
Jim Ingham
ad63637f3f
Reverting switch to the AsyncOutputStream for the Thread Trace Logger. This change caused the logger to crash. Presumably we're printing at a time the debugger isn't ready to print.
...
llvm-svn: 133629
2011-06-22 18:23:52 +00:00
Douglas Gregor
1501f16cfe
When instantiating a function template declaration that was expressed
...
via a typedef of a function, make sure to synthesize parameter
declarations. Fixes PR9654 / <rdar://problem/9257497>.
llvm-svn: 133628
2011-06-22 18:16:25 +00:00
Argyrios Kyrtzidis
59b5f356ad
[arcmt] Make -Warc-unsafe-retained-assign an error when migrating. rdar://8939557
...
llvm-svn: 133627
2011-06-22 18:03:59 +00:00
Argyrios Kyrtzidis
92b12187dd
Put all ARC-related warnings into the "arc" diagnostic group.
...
llvm-svn: 133626
2011-06-22 18:03:56 +00:00
Argyrios Kyrtzidis
694f75db13
Change "cannot assign retained object.." warning to "assigning retained object.."
...
llvm-svn: 133625
2011-06-22 18:03:53 +00:00
Eric Christopher
c235d0c635
Build and use libcompiler_rt whenever possible.
...
Patch by Jean-Daniel Dupas!
llvm-svn: 133624
2011-06-22 17:41:40 +00:00
Douglas Gregor
ec793dde8e
Try to silence GCC warning
...
llvm-svn: 133623
2011-06-22 16:43:25 +00:00
Fariborz Jahanian
ec667fcc36
objc-arc: Allow unbridged cast of retainable object to
...
integral as it is not transferring ownership..
// rdar://9619861
llvm-svn: 133622
2011-06-22 16:36:45 +00:00
Douglas Gregor
1c8cd7c1a5
Implement the C++0x move optimization for Automatic Reference Counting
...
objects, so that we steal the retain count of a temporary __strong
pointer (zeroing out that temporary), eliding a retain/release
pair. Addresses <rdar://problem/9364932>.
llvm-svn: 133621
2011-06-22 16:32:26 +00:00
Douglas Gregor
58df509fc0
When binding a reference to an Automatic Reference Counting temporary,
...
retain/release the temporary object appropriately. Previously, we
would only perform the retain/release operations when the reference
would extend the lifetime of the temporary, but this does the wrong
thing across calls.
llvm-svn: 133620
2011-06-22 16:12:01 +00:00
Justin Holewinski
08d0f3550a
PTX: Fix FrameIndex mapping bug
...
llvm-svn: 133619
2011-06-22 16:07:03 +00:00
Douglas Gregor
2fa40a3a06
Give MaterializeTemporaryExpr the exact type of the lvalue it binds
...
to, including cv-qualifications.
llvm-svn: 133618
2011-06-22 15:05:02 +00:00
Douglas Gregor
b6ea7d2e2d
Fix typo in comment
...
llvm-svn: 133617
2011-06-22 14:41:20 +00:00
Howard Hinnant
8298b9c2fd
Add instructions for -U__STRICT_ANSI__ for Mac OS 10.6
...
llvm-svn: 133616
2011-06-22 12:13:55 +00:00
Jay Foad
83be361b8a
Replace the existing forms of ConstantArray::get() with a single form
...
that takes an ArrayRef.
llvm-svn: 133615
2011-06-22 09:24:39 +00:00
Jay Foad
b8a8bed301
Make ConstantVector::get() always take an ArrayRef, never a std::vector.
...
llvm-svn: 133614
2011-06-22 09:10:19 +00:00
Dan Bailey
55ec2a8929
Test Commit.
...
llvm-svn: 133613
2011-06-22 09:04:30 +00:00
Jay Foad
687bd0ae66
Eliminate a temporary std::vector in ConstantStruct::get().
...
llvm-svn: 133612
2011-06-22 08:55:11 +00:00
Jay Foad
c365eeaea6
Extend ConstantUniqueMap with a new template parameter ValRefType,
...
representing a constant reference to ValType. Normally this is just
"const ValType &", but when ValType is a std::vector we want to use
ArrayRef as the reference type.
llvm-svn: 133611
2011-06-22 08:50:06 +00:00
Argyrios Kyrtzidis
c0c5dd2651
Introduce DelayedCleanupPool useful for simplifying clean-up of certain resources that, while their
...
lifetime is well-known and restricted, cleaning them up manually is easy to miss and cause a leak.
Use it to plug the leaking of TemplateIdAnnotation objects. rdar://9634138.
llvm-svn: 133610
2011-06-22 06:09:49 +00:00
Andrew Trick
fc0bb5855b
Only do config-time substitution of LLVM_BUILD_MODE in
...
test/lit.site.cfg, not Unit/test/lit.site.cfg.
llvm-svn: 133609
2011-06-22 05:44:01 +00:00
Andrew Trick
ec0c4e666e
Only do config-time substitution of LLVM_BUILD_MODE in
...
test/lit.site.cfg, not Unit/test/lit.site.cfg.
llvm-svn: 133608
2011-06-22 05:43:36 +00:00
Rafael Espindola
0850f709de
Reenable the optimization added in 133415, but change the definition of a "simple" bb to
...
be one with only one unconditional branch and no phis. Duplicating the phis in this case
is possible, but requeres liveness analysis or breaking edges.
llvm-svn: 133607
2011-06-22 04:01:58 +00:00
Greg Clayton
336c2869fb
Bump Xcode project version to 64.
...
llvm-svn: 133605
2011-06-22 03:27:35 +00:00
Alexis Hunt
2949f02333
Actually, you know, fix the problem.
...
llvm-svn: 133604
2011-06-22 02:58:46 +00:00
Johnny Chen
554332d3a6
This newly introduced test file (for debugging purpose) needs to handle the case
...
where the environment variables for log files (DEBUG_LLDB_LOG and DEBUG_GDB_REMOTE_LOG)
are not defined.
llvm-svn: 133603
2011-06-22 02:49:56 +00:00
Johnny Chen
e98f7f2cfa
Recent change to SBSymbolContextList (r133498) makes the default constructor return
...
a valid SB API object. Modify the test case to accommodate.
llvm-svn: 133602
2011-06-22 02:39:46 +00:00
John McCall
6b0feb7ed6
Emit @finally blocks completely lazily instead of forcing their
...
existence by always threading an edge from the catchall. Not doing
this was previously causing a crash in the very extreme case where
neither the normal cleanup nor the EH catchall was actually reachable:
we would delete the catchall entry block, which would cause us to
delete the entry block of the finally cleanup as well because the
cleanup logic would merge the blocks, which in turn triggered an assert
because later blocks in the finally would still be using values from the
entry. Laziness turns out to be the most elegant solution to the problem.
llvm-svn: 133601
2011-06-22 02:32:12 +00:00
Alexis Hunt
7b7fece4d4
Avoid making assumption that this is either a CXXMethodDecl or a
...
FunctionTemplateDecl. I'm not quite sure what else it could be, though,
and would appreciate some insight.
This ought to fix the broken builds
llvm-svn: 133600
2011-06-22 02:25:26 +00:00
Justin Holewinski
6fafebfb6a
PTX: Add signed integer comparisons
...
llvm-svn: 133599
2011-06-22 02:09:50 +00:00
Greg Clayton
1a38ea763a
Add a 10 second timeout to ensure that we don't lock up if we never get to the
...
process entry point.
llvm-svn: 133598
2011-06-22 01:42:17 +00:00
Greg Clayton
1da6f9d7f1
Fixed an issue where SBFrame::GetDisassembly() was returning disassembly that
...
contained the current line marker. This is now an option which is not enabled
for the API disassembly call.
llvm-svn: 133597
2011-06-22 01:39:49 +00:00
Alexis Hunt
fe268d1045
Extend the deleted overload candidate note to cover all cases. It
...
probably shouldn't cover the implicit member case, but it needs to until
more descriptive diagnostics are implemented.
llvm-svn: 133594
2011-06-22 01:05:16 +00:00
Alexis Hunt
d74c85fdcc
Ensure that we delete implict copy members when explicit move members
...
are also present.
llvm-svn: 133593
2011-06-22 01:05:13 +00:00
John McCall
b5f652e3ef
It is possible to request the nonfragile ABI with -fobjc-abi-version=2;
...
respect that when deciding whether -objc-exceptions implies the
-fexceptions -cc1 option.
llvm-svn: 133590
2011-06-22 00:53:57 +00:00
Justin Holewinski
54e3c0f5d9
PTX: Add .address_size directive if PTX version >= 2.3
...
Patch by Wei-Ren Chen
llvm-svn: 133589
2011-06-22 00:43:56 +00:00
Devang Patel
c93ef81e24
Test case for r133560.
...
llvm-svn: 133585
2011-06-22 00:03:42 +00:00
Alexis Hunt
491ec60802
Attempt to reapply this patch for caching copy assignment operator
...
lookup. Previously, it was breaking self-host, but it's been a week and
a half and I can't reproduce, so I need to see if it's still failing.
llvm-svn: 133581
2011-06-21 23:42:56 +00:00
Richard Smith
2602a683e0
Fix PR10168: don't warn for unused non-dependent variables in both the template definition and each instantiation.
...
llvm-svn: 133580
2011-06-21 23:42:09 +00:00
Chandler Carruth
cf5f43ce1f
Fix a missing space noticed by matthewbg in code review.
...
llvm-svn: 133577
2011-06-21 23:26:32 +00:00
Francois Pichet
941424b3ff
Unbreak the CMake build
...
llvm-svn: 133574
2011-06-21 23:19:23 +00:00
Richard Smith
f9603354ea
First part of PR9968: the __range variable in a dependent C++11 for-range statement is implicitly used by that statement.
...
llvm-svn: 133572
2011-06-21 23:07:19 +00:00
Chandler Carruth
889ed86d73
Fix some grammar nits in the comments from Nick.
...
llvm-svn: 133571
2011-06-21 23:04:20 +00:00
Chandler Carruth
f51c5a5b71
Revert r133526 which re-orders the suggestions for -Wparentheses on ?:
...
operators. There is a consistent design of having the "silence the
warning" option first.
llvm-svn: 133570
2011-06-21 23:04:18 +00:00
Devang Patel
d88b8babe0
After register is spilled there should not be any DBG_VALUE referring the same register.
...
llvm-svn: 133569
2011-06-21 23:02:36 +00:00