Johnny Chen
bfae99cf29
Modify the test cases (there are a bunch of them) under test/types so that they
...
employ different executable names when creating the target for lldb to debug.
Comparing the log files for the same test case with success/failure results show
that the failed one was setting the breakpoint on some different address than the
succeeded one, leading us to suspect that the file system maybe think it knows better
and caches the wrong executable file (they were all named 'a.out' before) which lldb
subsequently reads from.
Now './dotest.py -v types' passes without specifying the '-w' option.
rdar://problem/9644488
rdar://problem/9649573
llvm-svn: 133649
2011-06-22 21:15:10 +00:00
Nick Lewycky
5dc6b794b1
Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang!
...
llvm-svn: 133648
2011-06-22 21:13:46 +00:00
Jim Ingham
6cffdd2fd3
Trivial fix - insert a space between the frame name and the instruction output.
...
llvm-svn: 133647
2011-06-22 21:13:28 +00:00
Chad Rosier
cb7cfa4954
Revert r133607. This is causing failures in the Clang gccTestSuite.
...
Specifically, gcc.c-torture/compile/pr21356.c.
llvm-svn: 133646
2011-06-22 21:13:23 +00:00
Bill Wendling
eb872e0471
Move class methods out-of-line. This reduces the indentation, and is more in
...
line with LLVM's general coding style.
No functionality change.
llvm-svn: 133645
2011-06-22 21:07:27 +00:00
Johnny Chen
fdfa26fba0
Add docstring to test_SBSymbolContextList(self) explaining that upon default construction, the API object is valid.
...
llvm-svn: 133644
2011-06-22 20:57:52 +00:00
Devang Patel
ccf8dbf885
New binops need debug loc.
...
llvm-svn: 133642
2011-06-22 20:56:56 +00:00
Daniel Dunbar
40904c0977
test/Unit: Fix enable shared test to follow check that we have actually loaded
...
the site config.
llvm-svn: 133641
2011-06-22 20:41:53 +00:00
Jim Grosbach
51897047da
Add missing header.
...
llvm-svn: 133640
2011-06-22 20:40:30 +00:00
Fariborz Jahanian
0a3cfcc87f
Alloa catching Objective-C id's being thrown with C++ throw
...
in Darwin's fragile abi mode. // rdar://8940528
llvm-svn: 133639
2011-06-22 20:21:51 +00:00
Jim Grosbach
2354f87a9d
Move ARMMachObjectWriter to its own file.
...
Just tidy up a bit. No functional change.
llvm-svn: 133638
2011-06-22 20:14:52 +00:00
Manuel Klimek
f2b4b69346
Changes ParenListExpr to always require a type.
...
Removes dead code found in the process.
Adds a test to verify that ParenListExprs do not have NULL types.
llvm-svn: 133637
2011-06-22 20:02:16 +00:00
Devang Patel
ea7751bc24
Set debug loc.
...
llvm-svn: 133636
2011-06-22 19:52:36 +00:00
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