1. Feb 28, 2019
    • Matt Davis's avatar
      [llvm-readobj] Print section type values for unknown sections. · 7a24dbdf
      Matt Davis authored
      Summary:
      This patch displays a hexadecimal section value (Elf_Shdr::sh_type) or section-relative offset when printing unknown sections.
      
      Here is a subset of the output (ignoring the fields following "Type" when dumping an ELF's GNU `--section-headers` table).
      Section Headers:
      ```
        [Nr] Name              Type
        [16] android_rel       LOOS+0x1
        [17] android_rela      LOOS+0x2
        [27] unknown           0x1000: <unknown>
        [28] loos              LOOS+0
        [30] hios              VERSYM
        [31] loproc            LOPROC+0
        [33] hiproc            LOPROC+0xFFFFFFF
        [34] louser            LOUSER+0
        [36] hiuser            LOUSER+0x7FFFFFFF
      ```
      
      As a comparison, the previous output looked something like the above, but with a blank "Type" field:
      ```
        [Nr] Name              Type
        [27] unknown
        [28] loos
        [30] hios              VERSYM
        [31] loproc
        [33] hiproc
        [34] louser
        [36] hiuser
      ```
      
      This fixes PR40773
      
      Reviewers: jhenderson, rupprecht, Bigcheese
      
      Reviewed By: jhenderson, rupprecht, Bigcheese
      
      Subscribers: MaskRay, Bigcheese, srhines, jdoerfert, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D58701
      
      llvm-svn: 355014
      7a24dbdf
    • Alexey Lapshin's avatar
      Attempt to fix buildbot after r354972 [#1]. NFCI. · d89d6380
      Alexey Lapshin authored
      llvm-svn: 355013
      d89d6380
    • Akira Hatanaka's avatar
      Avoid needlessly copying a block to the heap when a block literal · c5792aa9
      Akira Hatanaka authored
      initializes a local auto variable or is assigned to a local auto
      variable that is declared in the scope that introduced the block
      literal.
      
      rdar://problem/13289333
      
      https://reviews.llvm.org/D58514
      
      llvm-svn: 355012
      c5792aa9
    • Matt Davis's avatar
      [llvm-cxxfilt] Re-enable the delimiters test on Windows. · 69bec619
      Matt Davis authored
      The original intent was to enable this test for Windows; however, that
      initial patch broke one of the build-bots.  I temporarily disabled this
      test on Windows until that issue was resolved.  It was resolved in my
      previous patch (cfd1d9742ee2d1b8dd6b7), and now I am re-enabling this
      test.
      
      llvm-svn: 355011
      69bec619
    • Louis Dionne's avatar
      [libc++] Add is_nothrow_convertible from P0758R1 · ab19068b
      Louis Dionne authored
      Reviewed as https://reviews.llvm.org/D58019.
      Thanks to Zoe Carver for the patch.
      
      llvm-svn: 355010
      ab19068b
    • Jonas Devlieghere's avatar
      [Reproducer] Make 'reproducer generate' a NOOP during replay. · 2dca6538
      Jonas Devlieghere authored
      Instead of filtering out the 'reproducer generate' command during
      replay, just make the operation a NOOP.
      
      llvm-svn: 355009
      2dca6538
    • David Goldman's avatar
      Support framework import/include auto-completion · 3e804d25
      David Goldman authored
      Frameworks filesystem representations:
        UIKit.framework/Headers/%header%
      
      Framework import format:
        #import <UIKit/%header%>
      
      Thus the completion code must map the input format of <UIKit/> to
      the path of UIKit.framework/Headers as well as strip the
      ".framework" suffix when auto-completing the framework name.
      
      llvm-svn: 355008
      3e804d25
    • Matt Davis's avatar
      Clean up the delimiters test. · eaa89536
      Matt Davis authored
      Ideally this is a NFCI, used single quotes in most cases.  Hopefully
      this will make the Windows bot happy.
      
      I've marked this unsupported on windows, until I get my windows box
      setup with this patch to test.  I'll remove that constraint after I'm
      confident this will pass on windows.  I just want to silence the
      buildbots for now.
      
      llvm-svn: 355007
      eaa89536
    • Louis Dionne's avatar
      [libc++] Remove visibility-related warnings with Clang 8 · 1be935f4
      Louis Dionne authored
      The attributes were placed incorrectly -- they need to be after the
      "struct" keyword, not before.
      
      llvm-svn: 355006
      1be935f4
    • Rong Xu's avatar
      Recommit r354930 "[PGO] Context sensitive PGO (part 1)" · 6cdf3d80
      Rong Xu authored
      Fixed UBSan failures.
      
      llvm-svn: 355005
      6cdf3d80
    • James Henderson's avatar
      [llvm-readobj]Add additional testing for various ELF features · 416603e3
      James Henderson authored
      This patch adds testing of areas of the code that are not fully tested,
      in particular dynamic table printing, ELF type printing, handling of
      edge cases where things are missing/empty (relocations/program header
      tables/section header table), and the --string-dump switch.
      
      Reviewed by: grimar, higuoxing, rupprecht
      
      Differential Revision: https://reviews.llvm.org/D58677
      
      llvm-svn: 355003
      416603e3
    • Jonas Devlieghere's avatar
      [Reproducers] Add more logging to reproducer instrumentation · 8c436ce3
      Jonas Devlieghere authored
      Debugging issues with instrumentation capture and replay can be
      particularly tricky, especially because part of the process takes places
      even before the debugger is initialized. This patch adds more logging
      capabilities to these classes, hidden behind a macro define.
      
      Differential revision: https://reviews.llvm.org/D58566
      
      llvm-svn: 355002
      8c436ce3
    • Xing GUO's avatar
      [llvm-objdump] Should print strings when dumping DT_RPATH, DT_RUNPATH,... · d78164a8
      Xing GUO authored
      [llvm-objdump] Should print strings when dumping DT_RPATH, DT_RUNPATH, DT_SONAME, DT_AUXILIARY and DT_FILTER tags in dynamic section.
      
      Summary:
      Before:
      ```
      Dynamic Section:
        NEEDED               libpthread.so.0
        ...
        NEEDED               ld-linux-x86-64.so.2
        RPATH                0x00000000001c2e61
      ```
      
      After:
      ```
      Dynamic Section:
        NEEDED               libpthread.so.0
        ...
        NEEDED               ld-linux-x86-64.so.2
        RPATH                $ORIGIN/../lib
      ```
      
      Only a small problem here, I have no idea on choosing test case. I see there's a test 
      file(test/tools/llvm-objdump/private-headers-dynamic-section.test). But it has no DT_RPATH and DT_RUNPATH tags. Shall I replace the ELF file in the 
      Inputs dir by a new one?
      
      Reviewers: jhenderson, grimar
      
      Reviewed By: jhenderson
      
      Subscribers: srhines, rupprecht, jfb, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D58707
      
      llvm-svn: 355001
      d78164a8
    • Balazs Keri's avatar
      [ASTImporter] Improve import of FileID. · 9cf39dfb
      Balazs Keri authored
      Summary:
      Even if the content cache has a directory and filename, it may be a virtual file.
      The old code returned with error in this case, but it is worth to try to handle
      the file as it were a memory buffer.
      
      Reviewers: a.sidorin, shafik, martong, a_sidorin
      
      Reviewed By: shafik
      
      Subscribers: efriedma, rnkovacs, cfe-commits, dkrupp, martong, Szelethus, gamesh411
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D57590
      
      llvm-svn: 355000
      9cf39dfb
    • Kostya Kortchinsky's avatar
      [scudo][standalone] Add a standalone vector class · b3a924af
      Kostya Kortchinsky authored
      Summary:
      This CL adds a standalone vector class that will be used by the scoped
      strings when they land. We reimplement our own vector class because we
      can't use the std library one.
      
      It's mostly borrowed from the current sanitizer_common one, with LLVM
      code style changes.
      
      Additionnally a casing change in a function name that slipped through
      the previous review (the function isn't used yet).
      
      Reviewers: vitalybuka, eugenis, flowerhack, dmmoore415, mcgrathr, morehouse
      
      Reviewed By: vitalybuka
      
      Subscribers: mgorny, delcypher, #sanitizers, llvm-commits
      
      Tags: #llvm, #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D58689
      
      llvm-svn: 354999
      b3a924af
    • Matt Davis's avatar
      [llvm-cxxfilt] Split and demangle stdin input on certain non-alphanumerics. · 5cd5f8f2
      Matt Davis authored
      Summary:
      This patch attempts to replicate GNU c++-filt behavior when splitting stdin input for demangling.
      
      Previously, cxx-filt would split input only on spaces.  Each delimited item is then demangled.
      From what I have tested, GNU c++filt also splits input on any character that does not make
      up the mangled name (notably commas, but also a large set of non-alphanumeric characters).
      
      This patch splits stdin input on any character that does not belong to the Itanium mangling
      format (since Itanium is currently the only supported format in llvm-cxxfilt).
      
      This is an update to PR39990
      
      Reviewers: jhenderson, tejohnson, compnerd
      
      Reviewed By: compnerd
      
      Subscribers: erik.pilkington, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D58416
      
      llvm-svn: 354998
      5cd5f8f2
    • Nikita Popov's avatar
      [InstCombine] Add additional add.sat overflow tests; NFC · a54fe156
      Nikita Popov authored
      Baseline for D58593.
      
      llvm-svn: 354996
      a54fe156
    • Marshall Clow's avatar
      I changed a 'enable_if<...>::type to' 'enable_if_t<...>' but forgot to remove... · 5c814099
      Marshall Clow authored
      I changed a 'enable_if<...>::type to' 'enable_if_t<...>' but forgot to remove the preceding 'typename'
      
      llvm-svn: 354995
      5c814099
    • Dmitri Gribenko's avatar
      Added documentation for clangd v9+ features · 5d58625e
      Dmitri Gribenko authored
      Reviewers: ilya-biryukov
      
      Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, jdoerfert, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D58717
      
      llvm-svn: 354994
      5d58625e
  2. Feb 27, 2019