Richard Smith
ede15af699
Truthify a comment.
...
llvm-svn: 157232
2012-05-22 01:41:27 +00:00
Nuno Lopes
61b7fa2985
fix the quotient returned by sdivrem() for the case when LHS is negative and RHS is positive
...
based on a patch by Preston Briggs, with some modifications
llvm-svn: 157231
2012-05-22 01:09:48 +00:00
Johnny Chen
7a34875b3b
rdar://problem/11487457
...
Add convenience registers eax, ebx, ecx, edx, edi, esi, ebp, esp to the 'register read' command for x86_64.
Add a GDBRemoteRegisterContext::Addx86_64ConvenienceRegisters() method called from ProcessGDBRemote::BuildDynamicRegisterInfo().
Servicing of eax, for example, is accomplished by delegating to rax with an adjusted offset into the register context.
llvm-svn: 157230
2012-05-22 00:57:05 +00:00
Ted Kremenek
f5958eb2b4
Fix typo.
...
llvm-svn: 157229
2012-05-22 00:54:40 +00:00
Ted Kremenek
c53ed2e158
Use Perl prototypes instead of shift.
...
llvm-svn: 157228
2012-05-22 00:52:49 +00:00
Argyrios Kyrtzidis
94442980c0
[objcmt] Don't add redundant parentheses when migrating subscripting of an ivar.
...
rdar://11501256
llvm-svn: 157227
2012-05-22 00:47:53 +00:00
Johnny Chen
058bb9908f
Fix a bug where if I just run:
...
./dotest.py
No progress bar appears.
llvm-svn: 157226
2012-05-22 00:22:18 +00:00
Jim Ingham
a8558b6289
Also push file & line breakpoints past the prologue. Also added a "-K" argument to the relevant
...
"break set" commands to set this per breakpoint. Also, some CreateBreakpoint API's in the lldb_private
namespace had "internal" first and "skip_prologue" second. "internal should always be last. Fixed that.
rdar://problem/11484729
llvm-svn: 157225
2012-05-22 00:12:20 +00:00
Jim Grosbach
da04fa0d02
FileCheck'ize test, and add a bit to test for r157221.
...
llvm-svn: 157222
2012-05-21 23:50:00 +00:00
Jim Grosbach
2597f83889
ARM: .end_data_region mismatch in Thumb2.
...
32-bit offset jump tables just use real branch instructions and so aren't
marked as data regions. We were still emitting the .end_data_region
marker though, which assert()ed.
rdar://11499158
llvm-svn: 157221
2012-05-21 23:34:42 +00:00
Sean Callanan
ce8af862ae
Added support for rvalue references in debug information
...
(actually, mainly just hooked up support that was already
there). Added a test case, although it's expected to fail
right now unless you're using top-of-tree LLVM.
llvm-svn: 157220
2012-05-21 23:31:51 +00:00
Ted Kremenek
2fe1ed3e0d
Add basic delta-debugging script used for reducing analyzer crasher test cases.
...
llvm-svn: 157219
2012-05-21 23:29:01 +00:00
Pete Cooper
243efd7ac3
Added address space qualifier to intrinsic PointerType arguments.
...
llvm-svn: 157218
2012-05-21 23:21:28 +00:00
Jim Ingham
62ac08e4e6
CompileUnit::ResolveSymbolContext was only filling in the LineEntry regardless of what was passed in for "resolve_scope". I fixed that.
...
llvm-svn: 157217
2012-05-21 23:06:47 +00:00
Fariborz Jahanian
945b2f46b1
objective-c: provide a useful 'fixit' suggestion when
...
errornously using commas to separate ObjC message arguments.
// rdar://11376372
llvm-svn: 157216
2012-05-21 22:43:44 +00:00
Owen Anderson
f2118ea826
Fix use of an unitialized value in the LegalizeOps expansion for ISD::SUB. No in-tree targets exercise this path.
...
Patch by Micah Villmow.
llvm-svn: 157215
2012-05-21 22:39:20 +00:00
Sean Callanan
3e606ea7ae
Updated the object-pointer lookup logic to fix
...
Objective-C "self," which is not a regular pointer.
llvm-svn: 157214
2012-05-21 22:25:52 +00:00
Sean Callanan
0061222ed8
Fixed the new-syntax testcase to reflect how we
...
print string literals.
llvm-svn: 157213
2012-05-21 22:25:12 +00:00
Eric Christopher
246bb99397
Revert r115805. An array type is required to have a range type,
...
however, the range can be unknown for the upper bound.
Testcase to follow.
Part of rdar://11457152
llvm-svn: 157212
2012-05-21 22:13:23 +00:00
Anna Zaks
fc1d4bdc4f
[analyzer] Bind UnknownVal to InitListExpr for unsupported types
...
(ex: float).
llvm-svn: 157211
2012-05-21 22:07:00 +00:00
Enrico Granata
7c015e1020
Fixes for performance to data formatters - Python < 3.0 is much slower when using True/False as compared to 1/0 for logical values. Wexploit this to our advantage. Other minor tweaks
...
llvm-svn: 157209
2012-05-21 21:52:38 +00:00
Sean Callanan
0259e51287
Fixed a nasty bug where JIT expressions didn't work
...
when stopped in a const method. Also updated our
testsuite to ensure that JIT is forced in this case.
llvm-svn: 157208
2012-05-21 21:29:52 +00:00
Rafael Espindola
96dcb8d4bb
Function template version of the previous patch.
...
llvm-svn: 157207
2012-05-21 20:31:27 +00:00
Rafael Espindola
93c289c28a
Produce a hidden symbol for zed in
...
struct HIDDEN foo {
};
template <class P>
struct bar {
};
template <>
struct HIDDEN bar<foo> {
DEFAULT static void zed();
};
void bar<foo>::zed() {
}
Before we would produce a hidden symbol in
struct HIDDEN foo {
};
template <class P>
struct bar {
};
template <>
struct bar<foo> {
DEFAULT static void zed();
};
void bar<foo>::zed() {
}
But adding HIDDEN to the specialization would cause us to produce a default
symbol.
llvm-svn: 157206
2012-05-21 20:15:56 +00:00
Argyrios Kyrtzidis
3169e80603
[driver] When creating the compiler invocation out of command-line
...
arguments, force use of clang frontend for the driver.
Fixes rdar://11356765.
llvm-svn: 157205
2012-05-21 20:11:54 +00:00
Benjamin Kramer
9bbf481f02
Analyzer: Fix PR12905, a crash when encountering a call to a function named "C".
...
While there clean up indentation.
llvm-svn: 157204
2012-05-21 19:40:38 +00:00
Sean Callanan
fc732755ad
Added an "rb" alias that sets breakpoints by
...
regular expression.
llvm-svn: 157202
2012-05-21 18:25:19 +00:00
Jim Grosbach
19a7bcedb1
Thumb2: RSB source register should be rGRP not GPRnopc.
...
t2RSB defined the operand correctly, but tRSBS didn't.
llvm-svn: 157200
2012-05-21 17:57:17 +00:00
Sean Callanan
66ad3bcb16
Integrated a check into Clang that make sure that
...
it doesn't try to call LookupDestructor on an
incomplete class.
llvm-svn: 157199
2012-05-21 17:54:55 +00:00
Argyrios Kyrtzidis
937bcb2de6
[arcmt] Revert r156999 "Remove the "it is not safe to remove an unused 'autorelease' message" ARC
...
migration error".
Per feedback from John this is useful to have in general.
llvm-svn: 157198
2012-05-21 17:48:31 +00:00
Dan Gohman
9c97eea0fd
Mark an unreachable region of code with llvm_unreachable.
...
llvm-svn: 157197
2012-05-21 17:41:28 +00:00
Dmitry Vyukov
46c1a4c25e
tsan: implement malloc/free hooks
...
llvm-svn: 157196
2012-05-21 17:39:40 +00:00
Chad Rosier
5d1f5d2be3
Typo.
...
llvm-svn: 157195
2012-05-21 17:13:41 +00:00
Fariborz Jahanian
19e09cb224
Remove unused argument in my last patch.
...
llvm-svn: 157194
2012-05-21 17:10:28 +00:00
Fariborz Jahanian
b52d8d2e5f
objective-c: When default synthesizing readonly IBOutlet properties
...
provide a 'fixit' to change 'readonly' to 'readwrite'. // rdar://11448209
llvm-svn: 157193
2012-05-21 17:02:43 +00:00
Sean Callanan
a69e64481d
Added a GDB equivalent for saving binary memory
...
data.
llvm-svn: 157192
2012-05-21 17:01:59 +00:00
Owen Anderson
778056b7e6
Make it so that the MArch, MCPU, MAttrs passed to EngineBuilder are actually used.
...
Patch by Jose Fonseca.
llvm-svn: 157191
2012-05-21 16:57:17 +00:00
Enrico Granata
fd4c84ee9f
<rdar://problem/11355592> Fixing a bug where we would incorrectly try and determine a dynamic type for a variable of a pointer type that is not a valid generic type for dynamic pointers.
...
llvm-svn: 157190
2012-05-21 16:51:35 +00:00
Timur Iskhodzhanov
ea365131a2
[ASan] Make for-Windows RTL compileable using Clang++
...
llvm-svn: 157188
2012-05-21 14:25:36 +00:00
Dmitry Vyukov
99ed663a42
tsan: do not assume non-recursive signal handlers
...
llvm-svn: 157187
2012-05-21 14:24:20 +00:00
Rafael Espindola
85e91ba6f5
Test and document a difference from gcc in the handling of visibility
...
attributes.
llvm-svn: 157186
2012-05-21 14:22:37 +00:00
Patrik Hägglund
d70a1a6f2b
test commit
...
llvm-svn: 157184
2012-05-21 13:18:06 +00:00
Stepan Dyatkovskiy
e89dafd876
PR1255 (case ranges: work with ConstantRangesSet instead of ConstantInt) related changes for Execution and Verifier.
...
llvm-svn: 157183
2012-05-21 10:44:40 +00:00
Benjamin Kramer
a63d9531dd
Unpack enums in CodeCompletetionResult.
...
In theory they should be wide enough even when the enum type is signed, but it
looks like MSVC9 still has problems with it.
llvm-svn: 157182
2012-05-21 10:42:01 +00:00
Dmitry Vyukov
163a8338be
tsan: replace CHECK with CHECK_EQ for better diagnostics
...
llvm-svn: 157181
2012-05-21 10:20:53 +00:00
Dmitry Vyukov
98953b7a6d
tsan: better, more realistic handling of signals
...
llvm-svn: 157178
2012-05-21 08:26:51 +00:00
Dmitry Vyukov
9d2229f3ca
tsan: add more checks for OOM conditions
...
tests like to try to malloc((size_t)-1)
llvm-svn: 157176
2012-05-21 06:46:27 +00:00
Craig Topper
e88f2fd4f7
Allow 256-bit shuffles to still be split even if only half of the shuffle comes from two 128-bit pieces.
...
llvm-svn: 157175
2012-05-21 06:40:16 +00:00
Jakob Stoklund Olesen
29268b50f2
Give a small negative bias to giant edge bundles.
...
This helps compile time when the greedy register allocator splits live
ranges in giant functions. Without the bias, we would try to grow
regions through the giant edge bundles, usually to find out that the
region became too big and expensive.
If a live range has many uses in blocks near the giant bundle, the small
negative bias doesn't make a big difference, and we still consider
regions including the giant edge bundle.
Giant edge bundles are usually connected to landing pads or indirect
branches.
llvm-svn: 157174
2012-05-21 03:11:23 +00:00
Peter Collingbourne
c947aaeeae
Teach Clang about the NVPTX backend.
...
llvm-svn: 157173
2012-05-20 23:28:41 +00:00