1. Jul 07, 2015
  2. Jul 06, 2015
    • Pavel Labath's avatar
      Fix dosep.py on windows after r240946 · 05ab2374
      Pavel Labath authored
      Summary:
      On windows, global python variables are not automatically passed to child processes. This commit
      makes sure the default timeout value is available to child processes by passing it directly.
      I pass the whole dotest_opts value to the children, so we can use the other members as well if we
      need to do it in the future.
      
      Reviewers: amccarth
      
      Subscribers: lldb-commits-list
      
      Differential Revision: http://reviews.llvm.org/D10895
      
      llvm-svn: 241459
      05ab2374
    • Rafael Espindola's avatar
      Simplify. NFC. · c7689300
      Rafael Espindola authored
      llvm-svn: 241458
      c7689300
    • Bruce Mitchener's avatar
      [lldb-mi] Use 'override' on overridden virtual methods. · 88205302
      Bruce Mitchener authored
      Summary: [lldb-mi] Use 'override' on overridden virtual methods.
      
      Reviewers: abidh, ki.stfu
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D10959
      
      llvm-svn: 241457
      88205302
    • Rafael Espindola's avatar
      Simplify. NFC. · 704cd841
      Rafael Espindola authored
      llvm-svn: 241456
      704cd841
    • Ed Schouten's avatar
      Make locale code compile on CloudABI. · 2a80cab9
      Ed Schouten authored
      After r241454 landed, libc++'s locale code compiles on CloudABI, with
      the exception of the following two bits:
      
      - CloudABI doesn't have setlocale(), as the C library does not keep
        track of any global state. The global locale is always set to "C".
        Disable the call to setlocale() on this system.
      - Similarly, mbtowc_l() is also not present, as it is also not
        thread-safe. As CloudABI does not support state-dependent encodings,
        simply disable that part of the logic.
      
      The locale code now compiles out of the box on CloudABI.
      
      Differential Revision:	http://reviews.llvm.org/D10729
      Reviewed by:	jroelofs
      
      llvm-svn: 241455
      2a80cab9
    • Ed Schouten's avatar
      Cleanup: prefer _LIBCPP_GET_C_LOCALE over __cloc(). · 2a7ab629
      Ed Schouten authored
      The __cloc() function is only present in case the environment does not
      provide a way to refer to the C locale using a compile-time constant
      expression. _LIBCPP_GET_C_LOCALE seems to be defined unconditionally.
      
      This improves compilation of the locale code on CloudABI.
      
      Differential Revision:	http://reviews.llvm.org/D10690
      Reviewed by:	jroelofs
      
      llvm-svn: 241454
      2a7ab629
    • Rafael Espindola's avatar
      Inline function into single use. NFC. · 286e7409
      Rafael Espindola authored
      llvm-svn: 241453
      286e7409
    • Tobias Grosser's avatar
      Print thread-identifiers in GPU debug output · ec46e537
      Tobias Grosser authored
      This helps us to understand which thread prints which information.
      
      llvm-svn: 241452
      ec46e537
    • Douglas Katzman's avatar
      Grammar bug. NFC · 0dd8eb32
      Douglas Katzman authored
      llvm-svn: 241451
      0dd8eb32
    • Rafael Espindola's avatar
      Remove getRelocationAddress. · 76ad2321
      Rafael Espindola authored
      Originally added in r139314.
      
      Back then it didn't actually get the address, it got whatever value the
      relocation used: address or offset.
      
      The values in different object formats are:
      
      * MachO: Always an offset.
      * COFF: Always an address, but when talking about the virtual address of
        sections it says: "for simplicity, compilers should set this to zero".
      * ELF: An offset for .o files and and address for .so files. In the case of the
        .so, the relocation in not linked to any section (sh_info is 0). We can't
        really compute an offset.
      
      Some API mappings would be:
      
      * Use getAddress for everything. It would be quite cumbersome. To compute the
        address elf has to follow sh_info, which can be corrupted and therefore the
        method has to return an ErrorOr. The address of the section is also the same
        for every relocation in a section, so we shouldn't have to check the error
        and fetch the value for every relocation.
      
      * Use a getValue and make it up to the user to know what it is getting.
      
      * Use a getOffset and:
       * Assert for dynamic ELF objects. That is a very peculiar case and it is
         probably fair to ask any tool that wants to support it to use ELF.h. The
         only tool we have that reads those (llvm-readobj) already does that. The
         only other use case I can think of is a dynamic linker.
       * Check that COFF .obj files have sections with zero virtual address spaces. If
         it turns out that some assembler/compiler produces these, we can change
         COFFObjectFile::getRelocationOffset to subtract it. Given COFF format,
         this can be done without the need for ErrorOr.
      
      The getRelocationAddress method was never implemented for COFF. It also
      had exactly one use in a very peculiar case: a shortcut for adding the
      section value to a pcrel reloc on MachO.
      
      Given that, I don't expect that there is any use out there of the C API. If
      that is not the case, let me know and I will add it back with the implementation
      inlined and do a proper deprecation.
      
      llvm-svn: 241450
      76ad2321
    • Chad Rosier's avatar
      Fix a bug in the A57FPLoadBalancing register tracking/scavenger. · 85a34639
      Chad Rosier authored
      The code in AArch64A57FPLoadBalancing::scavengeRegister() to handle dead defs
      was not correctly handling aliased registers.  E.g. if the dead def was of D2,
      then S2 was not being marked as unavailable, so it could potentially be used
      across a live-range in which it would be clobbered.
      
      Patch by Geoff Berry <gberry@codeaurora.org>!
      Phabricator: http://reviews.llvm.org/D10900
      
      llvm-svn: 241449
      85a34639
    • Bruce Mitchener's avatar
      [lldb-mi] Fix misc. typos in comments. · 6b067074
      Bruce Mitchener authored
      llvm-svn: 241448
      6b067074