Devang Patel
539cde8bce
Test case for r131422.
...
llvm-svn: 131423
2011-05-16 21:25:49 +00:00
Devang Patel
8e60ff11db
Preserve debug info for unused zero extended boolean argument.
...
Radar 9422775.
llvm-svn: 131422
2011-05-16 21:24:05 +00:00
Charles Davis
2701815ed8
Add a method I forgot in the last commit. Don't worry, this one passed
...
self-host :).
llvm-svn: 131421
2011-05-16 21:13:58 +00:00
Eli Friedman
a4d4a0162d
Make fast-isel work correctly s/uadd.with.overflow intrinsics.
...
llvm-svn: 131420
2011-05-16 21:06:17 +00:00
Eli Friedman
4c08bb450a
Fix silly typo.
...
llvm-svn: 131419
2011-05-16 20:34:53 +00:00
Johnny Chen
fac7b3aae6
Add implementation of built-in function len() for those lldb containers with
...
unambiguous iteration support. So that we could, for example:
...
REGs = lldbutil.get_GPRs(frame)
print "Number of general purpose registers: %d" % len(REGs)
for reg in REGs:
print "%s => %s" %(reg.GetName(), reg.GetValue())
...
llvm-svn: 131418
2011-05-16 20:31:18 +00:00
Eli Friedman
9ac944774f
Basic fast-isel of extractvalue. Not too helpful on its own, given the IR clang generates for cases like this, but it should become more useful soon.
...
llvm-svn: 131417
2011-05-16 20:27:46 +00:00
Nick Lewycky
9c876bf937
Fix errors in this llvm ir example.
...
llvm-svn: 131416
2011-05-16 19:29:30 +00:00
Caroline Tice
b5059acc5f
Fix places that were writing directly to the debugger's output
...
handles to go through the appropriate channels instead.
llvm-svn: 131415
2011-05-16 19:20:50 +00:00
Howard Hinnant
872a91167e
Brought call_once variadic call up to current spec, which allows move-only functors and move-only arguments, but disallows functors with non-const lvalue reference parameters.
...
llvm-svn: 131414
2011-05-16 19:05:11 +00:00
Howard Hinnant
8df61ea84d
Brought thread variadic constructor up to current spec, which allows move-only functors and move-only arguments, but disallows functors with non-const lvalue reference parameters.
...
llvm-svn: 131413
2011-05-16 18:40:35 +00:00
Johnny Chen
29fd504c09
Renamed the test cases more properly to test_lldb_iter_module/breakpoint/farme.
...
llvm-svn: 131412
2011-05-16 18:30:00 +00:00
Jason W Kim
94c31fdd31
Add a FIXME reminder to remove ForceARMElfPIC switch.
...
llvm-svn: 131411
2011-05-16 16:35:21 +00:00
Howard Hinnant
7735ccaf86
Supply missing std::qualifier to call.
...
llvm-svn: 131410
2011-05-16 16:20:59 +00:00
Howard Hinnant
23fdcd70c6
Spit 5th bullet __invoke into function pointers and everything else because result_of doesn't deal with function pointers.
...
llvm-svn: 131409
2011-05-16 16:20:21 +00:00
Howard Hinnant
07de7bcaa0
Supply missing move ctor in __bind_r, though this one will eventually be defaulted
...
llvm-svn: 131408
2011-05-16 16:19:01 +00:00
Howard Hinnant
15c34d48ba
Redesign of result_of to handle reference-qualified member functions
...
llvm-svn: 131407
2011-05-16 16:17:21 +00:00
Rafael Espindola
e90c1cb221
sets bit 0 of the function address of thumb function in .symtab
...
("T is 1 if the target symbol S has type STT_FUNC and the
symbol addresses a Thumb instruction ;it is 0 otherwise."
from "ELF for the ARM Architecture" 4.7.1.2)
Patch by Koan-Sin Tan!
llvm-svn: 131406
2011-05-16 16:17:21 +00:00
Rafael Espindola
71f8b08a80
Extra refactoring noticed by Eli Friedman.
...
llvm-svn: 131405
2011-05-16 15:48:45 +00:00
Joerg Sonnenberger
637603a7cc
Make the triple an explicit argument of FindTargetProgramPath.
...
Preserve the original triple in the NetBSD toolchain when using -m32 or
-m64 and the resulting effective target is different from the triple it
started with. This allows -m32 to use the same assembler/linking in
cross-compiling mode and avoids confusion about passing down target
specific flags in that case like --32.
llvm-svn: 131404
2011-05-16 13:35:02 +00:00
Rafael Espindola
5ec1941e58
Add test for PR9927.
...
llvm-svn: 131403
2011-05-16 12:42:39 +00:00
Zhongxing Xu
56cf054a35
Remove redundant template partial specilization.
...
llvm-svn: 131402
2011-05-16 12:42:22 +00:00
Rafael Espindola
c0d4cb17c1
Revert 131377, 131369 and 131365.
...
131365 caused PR9927.
llvm-svn: 131401
2011-05-16 12:30:54 +00:00
Anders Carlsson
d6f1518cc9
Fix another regression from the "skip vtable pointer initialization"
...
optimization. Make sure to require a vtable when trying to get the address
of a VTT, otherwise we would never end up emitting the VTT.
llvm-svn: 131400
2011-05-16 04:08:36 +00:00
Rafael Espindola
2050af838d
Don't do tail calls in a function that call setjmp. The stack might be
...
corrupted when setjmp returns again.
llvm-svn: 131399
2011-05-16 03:05:33 +00:00
Greg Clayton
93ecc368c1
Add support for the 'G' packet not being implemented or returning an error.
...
If we are asked to restore all register values, we need to fall back to
restoring each register one by one.
llvm-svn: 131398
2011-05-16 03:02:32 +00:00
Greg Clayton
b4aaf2e78d
Fixed an issue where large memory writes might not get chunked up into smaller
...
packets in GDB remote.
Also fixed a compiler warning for an unhandled case for a switch.
llvm-svn: 131397
2011-05-16 02:35:02 +00:00
John McCall
92e18ed40f
Stop leaving a.out files around.
...
llvm-svn: 131396
2011-05-16 02:23:45 +00:00
John McCall
7ec4b4342c
Don't actually emit calls to the reserved global placement new and delete
...
operators; their semantics are guaranteed by the language.
If someone wants to argue that freestanding compiles shouldn't recognize
this, I might be convinceable.
llvm-svn: 131395
2011-05-16 01:05:12 +00:00
Greg Clayton
1cfca1dc09
Dump JIT memory requirements when "log enable lldb expr" logging is enabled.
...
Correctly handle invalid 32-bit mmap fail return value in ProcessGDBRemote.
llvm-svn: 131394
2011-05-15 23:56:52 +00:00
Greg Clayton
17a0cb68c9
Properly handle when commands are not unsupported in the GDB remote clients.
...
Prior to this fix we would often call SendPacketAndWaitForResponse() which
returns the number of bytes in the response. The UNSUPPORTED response in the
GDB remote protocol is zero bytes and we were checking for it inside an if
statement:
if (SendPacketAndWaitForResponse(...))
{
if (response.IsUnsupportedResponse())
{
// UNSUPPORTED...
// This will never happen...
}
}
We now handle is properly as:
if (SendPacketAndWaitForResponse(...))
{
}
else
{
// UNSUPPORTED...
}
llvm-svn: 131393
2011-05-15 23:46:54 +00:00
Greg Clayton
5d353156d0
Added the ability to get a 32 or 64 bit simple return value from the
...
ABIMacOSX_arm plugin.
Modified darwin-debug to print out the exectuable, working directory and
arguments a bit differently.
llvm-svn: 131392
2011-05-15 22:49:24 +00:00
Sean Callanan
d12cf8bbc9
Updated to use the latest LLVM/Clang, to pick up JIT
...
changes.
llvm-svn: 131391
2011-05-15 22:34:38 +00:00
Alexis Hunt
f9933e80f2
main() exists in hosted, not freestanding implementations. Fixes the
...
build.
llvm-svn: 131390
2011-05-15 20:59:31 +00:00
Greg Clayton
3f71643cc9
Fixed the default ARM registers to have the generic argument
...
definitions and names.
llvm-svn: 131387
2011-05-15 17:52:30 +00:00
John McCall
53ffd3714f
Add a method for checking whether a function is one of the reserved global
...
placement allocation or deallocation functions. These functions cannot be
replaced by the user and are exempt from the normal requirements on
allocation functions (e.g. that they must return unaliased memory).
llvm-svn: 131386
2011-05-15 17:49:20 +00:00
Anders Carlsson
49c0bd2a25
Re-enable the fix for PR9181 now that all the edge cases are handled.
...
llvm-svn: 131385
2011-05-15 17:36:21 +00:00
Charles Davis
2f10078ae7
Fix copy-pasto.
...
llvm-svn: 131384
2011-05-15 17:28:27 +00:00
Douglas Gregor
9d07dfa439
When checking a set of template parameter lists against a
...
nested-name-specifier, re-evaluate the nested-name-specifier as if we
were entering that context (which we did!), so that we'll resolve a
template-id to a particular class template partial
specialization. Fixes PR9913.
llvm-svn: 131383
2011-05-15 17:27:27 +00:00
Charles Davis
af18d07ed6
Add stub methods to MCStreamer for emitting Win64 exception-handling
...
information.
llvm-svn: 131382
2011-05-15 17:20:01 +00:00
Charles Davis
757aa983dd
Get rid of extern "C" from the Win64 EH header.
...
llvm-svn: 131381
2011-05-15 17:09:26 +00:00
Charles Davis
215b92d24b
Add a header containing definitions used to implement Win64 exception handling.
...
llvm-svn: 131380
2011-05-15 14:42:22 +00:00
Nick Lewycky
0db2654023
Declare this function here so that it doesn't get C++ mangling.
...
llvm-svn: 131379
2011-05-15 07:20:34 +00:00
John McCall
036f2f6b35
The array-size operand to a new-expression is not necessarily a size_t.
...
It can be larger, it can be smaller, it can be signed, whatever. Handle
all the crazy cases with grace and spirit.
llvm-svn: 131378
2011-05-15 07:14:44 +00:00
Argyrios Kyrtzidis
8cd0a7e263
Fix MSVC build.
...
llvm-svn: 131377
2011-05-15 05:10:24 +00:00
Greg Clayton
9a8fa9161f
Added generic register numbers for simple ABI argument registers and defined
...
the appropriate registers for arm and x86_64. The register names for the
arguments that are the size of a pointer or less are all named "arg1", "arg2",
etc. This allows you to read these registers by name:
(lldb) register read arg1 arg2 arg3
...
You can also now specify you want to see alternate register names when executing
the read register command:
(lldb) register read --alternate
(lldb) register read -A
llvm-svn: 131376
2011-05-15 04:12:07 +00:00
John McCall
745ae2853c
Make CGF.getContext() inlinable, because it's trivial, and optimize
...
hasAggregateLLVMType.
llvm-svn: 131375
2011-05-15 02:34:36 +00:00
John McCall
85dd2c5039
More killing of std::vector.
...
llvm-svn: 131374
2011-05-15 02:19:42 +00:00
John McCall
9dc0db2192
Use arrays and SmallVectors instead of std::vectors when building function
...
types. Also, cache a translation of 'void' in CGM and provide a ptrdiff_t
alias. No functionality change.
llvm-svn: 131373
2011-05-15 01:53:33 +00:00
Anders Carlsson
b55c8c127e
Disable the optimization until the bug noticed by Sean Hunt has been fixed.
...
llvm-svn: 131372
2011-05-15 01:50:14 +00:00