Douglas Gregor
0a791672f0
Introduce the notion of a "minimal" import of ASTs, to better support LLDB.
...
llvm-svn: 123723
2011-01-18 03:11:38 +00:00
Daniel Dunbar
66e91d4a58
McARM: Start marking T2 address operands as such, for the benefit of the parser.
...
llvm-svn: 123722
2011-01-18 03:06:03 +00:00
Ken Dyck
9a6486934c
Replace calls to CharUnits::fromQuantity() with ones to
...
ASTContext::toCharUnitsFromBits() when converting from bit sizes to char units.
llvm-svn: 123720
2011-01-18 02:01:14 +00:00
Jeffrey Yasskin
8dfa5f1776
Fix warnings found by gcc-4.6, from -Wunused-but-set-variable and
...
-Wint-to-pointer-cast.
llvm-svn: 123719
2011-01-18 02:00:16 +00:00
Daniel Dunbar
e46bc4cec5
Formatting tweak.
...
llvm-svn: 123718
2011-01-18 01:59:30 +00:00
Daniel Dunbar
f413213a48
Support/CommandLine: Add "Did you mean" print for mismatched operands.
...
llvm-svn: 123717
2011-01-18 01:59:24 +00:00
Jim Ingham
bda4e5eb33
In ThreadPlanCallFunction, do the Takedown right when the thread plan gets popped. When the function call is discarded (e.g. when it crashes and discard_on_error is true) the plan gets discarded. You need to make sure that the stack gets restored right then, and not wait till you start again and the thread plan stack is cleared.
...
llvm-svn: 123716
2011-01-18 01:58:06 +00:00
Ken Dyck
86a7fcc19c
Replace calls to CharUnits::fromQuantity() with ones
...
ASTContext::toCharUnitsFromBits() when converting from bit sizes to char units.
llvm-svn: 123715
2011-01-18 01:56:16 +00:00
Eric Christopher
542f8a5221
The stub routine that we're calling uses test and so clobbers
...
the flags.
llvm-svn: 123712
2011-01-18 01:37:20 +00:00
Chris Lattner
ea4e983d70
minor change to rafael's recent patches: if something is
...
constant but requires a unique address, we can still put it in a
readonly section, just not a mergable one.
llvm-svn: 123711
2011-01-18 01:23:44 +00:00
Sean Callanan
2652ad251a
Quick fixes to set access specifiers for Typedefs
...
and Enums inside classes.
llvm-svn: 123710
2011-01-18 01:03:44 +00:00
Jeffrey Yasskin
249fcd4499
Remove unused variables found by gcc-4.6's -Wunused-but-set-variable.
...
llvm-svn: 123707
2011-01-18 00:51:23 +00:00
Stuart Hastings
4fa832aab0
Remove checking that prevented overlapping CALLSEQ_START/CALLSEQ_END
...
ranges, add legalizer support for nested calls. Necessary for ARM
byval support. Radar 7662569.
llvm-svn: 123704
2011-01-18 00:09:27 +00:00
Sean Callanan
c3a160062d
Added support for the fragile ivars provided by
...
Apple's Objective-C 2.0 runtime. They are enabled
if the Objective-C runtime has the proper version.
llvm-svn: 123694
2011-01-17 23:42:46 +00:00
Jim Ingham
5caed4e8a8
Add a method on the ObjC Language Runtime that returns the runtime version.
...
llvm-svn: 123693
2011-01-17 23:06:54 +00:00
NAKAMURA Takumi
bd91f50190
lib/CodeGen/TargetInfo.cpp: Add Win64 calling conversion.
...
FIXME: It would be incompatible to Microsoft's in one point.
On mingw64-gcc, {i128} is expanded for args and returned as {rax, rdx}.
llvm-svn: 123692
2011-01-17 22:56:31 +00:00
NAKAMURA Takumi
a2e468cb0a
lib/Basic/Targets.cpp: __builtin_va_list is as same on win64 mingw64!
...
llvm-svn: 123691
2011-01-17 22:56:23 +00:00
NAKAMURA Takumi
ce5519a790
lib/Basic/Targets.cpp: Fix __declspec() on Mingw-w64.
...
It should be defined as-is. Some headers would detect existence of __declspec and use one.
llvm-svn: 123690
2011-01-17 22:56:16 +00:00
NAKAMURA Takumi
f7c3022369
lib/Basic/Targets.cpp: Set user_label_prefix on Win64 both mingw and msvc.
...
llvm-svn: 123689
2011-01-17 22:56:08 +00:00
NAKAMURA Takumi
8a07451a6e
Windows/PathV2.inc: For CryptAcquireContext(), CRYPT_VERIFYCONTEXT may be specified for easy use.
...
llvm-svn: 123687
2011-01-17 22:41:34 +00:00
NAKAMURA Takumi
53f893af54
Windows/PathV2.inc: MoveFileEx() can behave like Posix's mv(1) to specify MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING.
...
llvm-svn: 123686
2011-01-17 22:41:25 +00:00
NAKAMURA Takumi
bb4ea1fef9
lib/Support/Windows/Signals.inc: "Showstopper" dialogs may be suppressed with SetErrorMode() on Windows 7.
...
llvm-svn: 123685
2011-01-17 22:41:15 +00:00
Owen Anderson
459e079912
Remove dead code, that I apparently wrote a while back. We seem to be doing well enough
...
without whatever this was trying to do. When/if someone has the time to do some empirical
evaluations, it might be worth it to figure out what this code was trying to do and see if
it's worth resurrecting/fixing.
llvm-svn: 123684
2011-01-17 22:39:54 +00:00
Johnny Chen
07b289221f
Terminate the current process being debugged.
...
The test framework was relying on detecting either "run" or
"process launch" command to automatically kill the inferior.
llvm-svn: 123683
2011-01-17 22:35:39 +00:00
Devang Patel
283e89dd22
Simplify.
...
llvm-svn: 123682
2011-01-17 22:23:07 +00:00
Rafael Espindola
2e217d6555
More unnamed_addr.
...
llvm-svn: 123681
2011-01-17 22:22:52 +00:00
Rafael Espindola
de089d462c
merge strings created by
...
const NSConstantString *appKey = @"MyApp";
llvm-svn: 123680
2011-01-17 22:11:21 +00:00
Caroline Tice
6760a51739
Replace Mutex guarding python interpreter access with Predicate,
...
allowing timeouts & informing the user when the lock is unavailable.
Fixed problem where Debugger::Terminate was clearing the debugger list
even when the global ref count was greater than zero.
llvm-svn: 123674
2011-01-17 21:55:19 +00:00
Greg Clayton
fc75303acb
Avoid infinite loops in stack backtraces and renamed:
...
bool RegisterContextLLDB::GetPC (addr_t& pc);
to:
bool RegisterContextLLDB::ReadPC (addr_t& pc);
To avoid confusion with the GetPC() function that is part of the
lldb_private::RegisterContext:
uint64_t RegisterContext::GetPC (uint64_t fail_value);
Bad things could happen if the two got intermixed and the wrong one got
called.
Fixed inifinite loop detection by watching for two frames where the
RegisterContextLLDB::CursorSP contains the same start_pc and cfa.
llvm-svn: 123673
2011-01-17 21:03:33 +00:00
Greg Clayton
b2a844bfe1
Removed commented out code since it was incorrect code to begin with and we don't want anyone thinking they should put it back in.
...
llvm-svn: 123672
2011-01-17 20:59:07 +00:00
Sean Callanan
865267f9d4
Fixed a bug which would trigger an assert() in LLDB;
...
we were setting a forward-declared Objective-C class
type as being completed using an ExternalSemaSource,
but this is neither legal nor necessary.
llvm-svn: 123671
2011-01-17 20:50:38 +00:00
Douglas Gregor
69e6206b19
Add a missing <cctype> include, from Joerg Sonnenberger!
...
llvm-svn: 123670
2011-01-17 19:17:01 +00:00
Douglas Gregor
45e84b0053
NetBSD, OpenBSD, and Dragonfly BSD also have arc4random. Patch from
...
Joerg Sonnenberger!
llvm-svn: 123669
2011-01-17 19:16:24 +00:00
Douglas Gregor
a09c6cca72
Add missing <cctype> include, from Joerg Sonnenberger
...
llvm-svn: 123668
2011-01-17 19:15:43 +00:00
Anders Carlsson
48d7285fc6
Handle base and member destructors in CheckFallThrough.
...
llvm-svn: 123667
2011-01-17 19:06:31 +00:00
Argyrios Kyrtzidis
ee56962cc1
Convert "#pragma unused(...)" into tokens for the parser.
...
This allows us to cache a "#pragma unused" that occurs inside an inline C++ member function.
Fixes rdar://8829590&8770988.
llvm-svn: 123666
2011-01-17 18:58:44 +00:00
Jim Grosbach
834c373e3f
Trailing whitespace.
...
llvm-svn: 123665
2011-01-17 18:34:03 +00:00
Benjamin Kramer
45d183ccf0
Fix an off-by-one error in ctpop combining.
...
llvm-svn: 123664
2011-01-17 18:00:28 +00:00
Devang Patel
3ec1f198e5
Update tests to accomodate unnamed_addr introduction.
...
llvm-svn: 123663
2011-01-17 17:54:17 +00:00
Cameron Zwarich
b410858a5f
Roll r123609 back in with two changes that fix test failures with expensive
...
checks enabled:
1) Use '<' to compare integers in a comparison function rather than '<='.
2) Use the uniqued set DefBlocks rather than Info.DefiningBlocks to initialize
the priority queue.
The speedup of scalarrepl on test-suite + SPEC2000 + SPEC2006 is a bit less, at
just under 16% rather than 17%.
llvm-svn: 123662
2011-01-17 17:38:41 +00:00
Devang Patel
ea49cb04a5
Revert rr123550. It causes clang build failure on darwin9.
...
llvm-svn: 123661
2011-01-17 17:34:43 +00:00
Michael J. Spencer
992efd12a7
Archive: Fix temp path names.
...
llvm-svn: 123660
2011-01-17 16:43:30 +00:00
Oscar Fuentes
e65ed1c794
Add some platform checks. Also fix a typo on a Makefile.
...
Patch by arrowdodger!
llvm-svn: 123659
2011-01-17 16:35:14 +00:00
Rafael Espindola
e79d43da3b
Add unnamed_addr to the special strings created by
...
__builtin___CFStringMakeConstantString
This fixes PR8993. A darwin expert might want to check that this is safe.
llvm-svn: 123658
2011-01-17 16:31:00 +00:00
Michael J. Spencer
b74799090a
Support/raw_ostream: Fix uninitalized variable in raw_fd_ostream constructor.
...
llvm-svn: 123643
2011-01-17 15:53:12 +00:00
Jay Foad
fe87364215
Remove useless Tag enumeration.
...
llvm-svn: 123623
2011-01-17 15:18:06 +00:00
Kalle Raiskila
06c6d5cdb6
Split up RotateShift itinerary in SPU.
...
'rotq*' and 'shlq*' instructions go to the odd pipeline,
wheras the inter-vector equivalents 'rot*', 'shl*' go
to the even.
llvm-svn: 123622
2011-01-17 13:33:19 +00:00
Benjamin Kramer
24c5184dca
Add a DAGCombine to turn (ctpop x) u< 2 into (x & x-1) == 0.
...
This shaves off 4 popcounts from the hacked 186.crafty source.
This is enabled even when a native popcount instruction is available. The
combined code is one operation longer but it should be faster nevertheless.
llvm-svn: 123621
2011-01-17 12:04:57 +00:00
Kalle Raiskila
7e7b4ac751
Don't crash SPU BE with memory accesses with big alignmnet.
...
llvm-svn: 123620
2011-01-17 11:59:20 +00:00
Evan Cheng
dfce83c8f5
Materialize GA addresses with movw + movt pairs for Darwin in PIC mode. e.g.
...
movw r0, :lower16:(L_foo$non_lazy_ptr-(LPC0_0+4))
movt r0, :upper16:(L_foo$non_lazy_ptr-(LPC0_0+4))
LPC0_0:
add r0, pc, r0
It's not yet enabled by default as some tests are failing. I suspect bugs in
down stream tools.
llvm-svn: 123619
2011-01-17 08:03:18 +00:00