Aaron Ballman
629afaefe0
[C++11] Replacing DeclBase iterators decls_begin() and decls_end() with iterator_range decls(). The same is true for the noload versions of these APIs. Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203278
2014-03-07 19:56:05 +00:00
Ahmed Charles
d72a5f103d
Replace OwningPtr::isValid() with conversion to bool.
...
This is a precursor to moving to std::unique_ptr.
llvm-svn: 203277
2014-03-07 19:51:06 +00:00
Benjamin Kramer
571e2fecf8
[C++11] DwarfDebug: Turn single-use functors into lambdas.
...
No functionality change.
llvm-svn: 203276
2014-03-07 19:41:22 +00:00
Ahmed Charles
9a16beb8bc
Change OwningPtr::take() to OwningPtr::release().
...
This is a precursor to moving to std::unique_ptr.
llvm-svn: 203275
2014-03-07 19:33:25 +00:00
Greg Clayton
9cbd3c628c
Verify we have a correct ELF or Mach core file before we return a valid instace of ProcessElfCore or ProcessMachCore respectively.
...
llvm-svn: 203274
2014-03-07 19:24:39 +00:00
Jordan Rose
05f44b4d1c
[ADT] Update PointerIntPair to handle pointer types with more than 31 bits free.
...
Previously, the assertions in PointerIntPair would try to calculate the value
(1 << NumLowBitsAvailable); the inferred type here is 'int', so if there were
more than 31 bits available we'd get a shift overflow.
Also, add a rudimentary unit test file for PointerIntPair.
llvm-svn: 203273
2014-03-07 19:19:56 +00:00
Michael Gottesman
700a991f0d
[docs] Teach CMake docs build how to generate Qt Creator help/documentation files.
...
Patch by Konrad Kleine.
Differential Revision: http://llvm-reviews.chandlerc.com/D2967
llvm-svn: 203272
2014-03-07 19:19:28 +00:00
Ed Maste
c5a3c9f483
Use predefined $(RM) in clean rule, and -r only for (expected) directories
...
llvm-svn: 203271
2014-03-07 19:11:00 +00:00
Benjamin Kramer
15596c7b00
[C++11] DwarfDebug: Use range-based for loops.
...
It has a lot of them with complex types. C++11 really shines here.
llvm-svn: 203270
2014-03-07 19:09:39 +00:00
Rafael Espindola
24a542fd5c
Don't avoid cfi instructions on the bg/p.
...
The integrated assembler now works for ppc. Since this was the last use of the
bg/p predicate and Hal says that it is now dead, drop the predicate too.
llvm-svn: 203269
2014-03-07 19:04:12 +00:00
Ed Maste
49f359aea4
Fix malloc thread step-out test on FreeBSD
...
After hitting the malloc() breakpoint on FreeBSD our top frame is actually
an inlined function malloc_init.
* frame #0 : 0x0000000800dcba19 libc.so.7`malloc [inlined] malloc_init at malloc.c:5397
frame #1 : 0x0000000800dcba19 libc.so.7`malloc(size=1024) + 9 at malloc.c:5949
frame #2 : 0x00000000004006e5 test_step_out_of_malloc_into_function_b_with_dwarf`b(val=1) + 37 at main2.cpp:29
Add a heuristic to keep stepping out until we come to a non-malloc caller,
before checking if it is our desired caller from the test code.
llvm.org/pr17944
llvm-svn: 203268
2014-03-07 19:02:20 +00:00
Ted Kremenek
d9e9c72732
Remove dead 'break' (dominated by 'return').
...
llvm-svn: 203267
2014-03-07 18:54:08 +00:00
Ted Kremenek
090a273b55
Remove dead return and simplify code.
...
llvm-svn: 203266
2014-03-07 18:53:05 +00:00
Ted Kremenek
0b01471694
Remove dead 'return'.
...
llvm-svn: 203265
2014-03-07 18:51:16 +00:00
David Majnemer
cd481d3845
MC: Use MachO::SectionType for MCSectionMachO::getType's return type
...
This is a straightfoward replacement, it makes debugging a little
easier.
This has no functional impact.
llvm-svn: 203264
2014-03-07 18:49:54 +00:00
David Blaikie
4bd13b7515
DebugInfo: Refactor high_pc/low_pc construction into reusable function
...
For incoming improvements to inlined functions and lexical blocks
suggested by Adrian Prantl in review of r203187.
llvm-svn: 203263
2014-03-07 18:49:45 +00:00
Aaron Ballman
29c9460d3e
Renaming the chains() ranged iterator to chain() per suggestion by Richard Smith.
...
llvm-svn: 203262
2014-03-07 18:36:15 +00:00
Aaron Ballman
1391608234
[C++11] Replacing IndirectFieldDecl iterators chain_begin() and chain_end() with iterator_range chains(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203261
2014-03-07 18:11:58 +00:00
Nico Weber
c7cb940440
Add a note in the user manual that tsan is not supported on Mac.
...
Patch from Sean McBride <sean@rogue-research.com>!
llvm-svn: 203260
2014-03-07 18:11:40 +00:00
Nico Weber
ab88f0b12f
"Mac OS/X" -> "Mac OS X" spelling fixes for clang.
...
Patch from Sean McBride <sean@rogue-research.com>!
llvm-svn: 203259
2014-03-07 18:09:57 +00:00
Nico Weber
ad15692061
"Mac OS/X" -> "Mac OS X" spelling fixes for llvm.
...
Patch from Sean McBride <sean@rogue-research.com>!
llvm-svn: 203258
2014-03-07 18:08:54 +00:00
Duncan P. N. Exon Smith
fdbb44a59e
C++11: Remove const from in auto guidelines
...
Using const is orthogonal to guidelines on using auto& and auto*.
llvm-svn: 203257
2014-03-07 18:06:15 +00:00
David Blaikie
d723f5186e
DebugInfo: Restrict DW_AT_high_pc encoding as data4 offset to DWARF 4 as per spec
...
Code review feedback to r203187 from Oliver Stannard. Thanks!
llvm-svn: 203256
2014-03-07 18:04:24 +00:00
Aaron Ballman
43b68bebe7
[C++11] Replacing ObjCMethodDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203255
2014-03-07 17:50:17 +00:00
Duncan P. N. Exon Smith
6b3d6a4fe9
C++11: Copy pointers with const auto *
...
llvm-svn: 203254
2014-03-07 17:23:29 +00:00
Ed Maste
0990e05d43
Fix test 'make clean' target for empty $(DSYM) on FreeBSD
...
A freebsd issue with rm prevents '[g]make clean' from working if $(DSYM)
is empty (fts_open(3) fails if passed an empty argument).
To work around this, simplify the clean target by using three separate
rm invocations: one for the common files, one for the case of non-empty
$(DYLIB_NAME), and one for non-empty $(DSYM).
Issue diagnosed (and reported to FreeBSD) by John Wolfe.
llvm.org/pr17933
llvm-svn: 203253
2014-03-07 17:20:50 +00:00
Aaron Ballman
e7fbde8cb6
[C++11] Adding an iterator_range accessor for parameter declarations to the CaptureDecl class; however, the only usage of the iterators cannot be converted to using the range yet. This change is for consistency with other Decls exposing parameters.
...
llvm-svn: 203252
2014-03-07 16:40:17 +00:00
Duncan P. N. Exon Smith
29db0eb855
ARM: Make .unreq directives case-insensitive
...
Be case-insensitive when processing .unreq directives.
Patch by Lin Zuojian!
llvm-svn: 203251
2014-03-07 16:16:52 +00:00
Aaron Ballman
b2b8b1dc66
[C++11] Replacing BlockDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203250
2014-03-07 16:09:59 +00:00
Benjamin Kramer
bcc77b04bb
[C++11] Now that the users are gone, rip out the duplicated traits from type_traits.h
...
Simplify the remaining ones a bit.
llvm-svn: 203249
2014-03-07 15:54:23 +00:00
Aaron Ballman
f6bf62e2d0
[C++11] Replacing FunctionDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203248
2014-03-07 15:12:56 +00:00
Tim Northover
65fe9377f0
ARM: fix file's header comment
...
llvm-svn: 203247
2014-03-07 14:56:29 +00:00
Dmitri Gribenko
376bf57648
Add missing std:: qualifiers
...
llvm-svn: 203246
2014-03-07 14:55:30 +00:00
Ed Maste
11cbb11611
Add decorator for recent FreeBSD failure
...
llvm.org/pr19075
llvm-svn: 203245
2014-03-07 14:50:29 +00:00
Benjamin Kramer
68f8699031
Add missing std:: qualifiers.
...
llvm-svn: 203244
2014-03-07 14:50:15 +00:00
Benjamin Kramer
79a96dfce0
Make header standalone for libstdc++.
...
llvm-svn: 203243
2014-03-07 14:43:48 +00:00
Benjamin Kramer
f04ddd01c9
[C++11] Replace LLVM-style type traits with C++11 standard ones.
...
No functionality change.
llvm-svn: 203242
2014-03-07 14:42:25 +00:00
Benjamin Kramer
ed2f476b20
[C++11] Replace LLVM-style type traits with C++11 standard ones.
...
No functionality change.
llvm-svn: 203241
2014-03-07 14:30:23 +00:00
Aaron Ballman
b105e49f28
[C++11] Replacing iterators ddiag_begin() and ddiag_end() with iterator_range ddiags(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203240
2014-03-07 14:09:15 +00:00
Aaron Ballman
63ab760ebe
[C++11] Updating getUsingDirectives to use iterator_range instead of a std::pair.
...
llvm-svn: 203239
2014-03-07 13:44:44 +00:00
Alexey Samsonov
18adbc361a
Remove sanitizer_linux_libcdep.cc from TSan-Go build
...
llvm-svn: 203238
2014-03-07 13:17:32 +00:00
Aaron Ballman
7dce1a840c
Fully reverting r203236 -- it seems the only bots that are happy are the MSVC bots.
...
llvm-svn: 203237
2014-03-07 13:13:38 +00:00
Aaron Ballman
690829696c
[C++11] Replacing iterators attr_begin() and attr_end() with iterator_range attrs(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203236
2014-03-07 12:50:00 +00:00
Alexey Samsonov
f3f3b9e5b6
[FreeBSD] Add support for sanitizer_linux_libcdep.cc
...
Patch by Viktor Kutuzov!
llvm-svn: 203235
2014-03-07 11:47:32 +00:00
Richard Sandiford
95bc5f92ee
[SystemZ] Move sign_extend optimization to PerformDAGCombine
...
The target was marking SIGN_EXTEND as Custom because it wanted to optimize
certain sign-extended shifts. In all other respects the extension is Legal,
so it'd be better to do the optimization in PerformDAGCombine instead.
No functional change intended.
llvm-svn: 203234
2014-03-07 11:34:35 +00:00
Jim Ingham
4a65fb1f25
Don't hold the ThreadList lock over calls to the GetStatus (Process or Thread) calls
...
or the lower levels of the Process won't be able to restart.
<rdar://problem/16244835>
llvm-svn: 203233
2014-03-07 11:20:03 +00:00
Jim Ingham
a04ef756d4
If you are disabling a hardware breakpoint, use z1 not z0.
...
<rdar://problem/16256532>
llvm-svn: 203232
2014-03-07 11:18:02 +00:00
Jim Ingham
0ff099f10c
The ThreadPlanCallFunction needs to pass its "StopOthers" to its run to address subplan.
...
llvm-svn: 203231
2014-03-07 11:16:37 +00:00
Tim Northover
ad3d81d320
CodeGenPrep: sink extends of illegal types into use block.
...
This helps the instruction selector to lower an i64 * i64 -> i128
multiplication into a single instruction on targets which support it.
Patch by Manuel Jacob.
llvm-svn: 203230
2014-03-07 11:04:30 +00:00
Tim Northover
fad2761ca0
InstCombine: form shuffles from wider range of insert/extractelements
...
Sequences of insertelement/extractelements are sometimes used to build
vectorsr; this code tries to put them back together into shuffles, but
could only produce a completely uniform shuffle types (<N x T> from two
<N x T> sources).
This should allow shuffles with different numbers of elements on the
input and output sides as well.
llvm-svn: 203229
2014-03-07 10:24:44 +00:00