1. Jun 07, 2018
  2. Jun 06, 2018
    • Walter Lee's avatar
      [asan] Fix Myraid RTEMS port broken by r333985 · 381072c4
      Walter Lee authored
      Add nop CheckASLR() function.
      
      llvm-svn: 334102
      381072c4
    • Roman Lebedev's avatar
      [clang-tidy] Store checks profiling info as JSON files · a87f1d04
      Roman Lebedev authored
      Summary:
      Continuation of D46504.
      
      Example output:
      ```
        $ clang-tidy -enable-check-profile -store-check-profile=. -checks=-*,readability-function-size source.cpp
        $ # Note that there won't be timings table printed to the console.
        $ cat *.json
        {
        "file": "/path/to/source.cpp",
        "timestamp": "2018-05-16 16:13:18.717446360",
        "profile": {
          "time.clang-tidy.readability-function-size.wall": 1.0421266555786133e+00,
          "time.clang-tidy.readability-function-size.user": 9.2088400000005421e-01,
          "time.clang-tidy.readability-function-size.sys": 1.2418899999999974e-01
        }
        }
      ```
      
      There are two arguments that control profile storage:
      
      * `-store-check-profile=<prefix>`
      
        By default reports are printed in tabulated format to stderr. When this option
        is passed, these per-TU profiles are instead stored as JSON.
        If the prefix is not an absolute path, it is considered to be relative to the
        directory from where you have run :program:`clang-tidy`. All `.` and `..`
        patterns in the path are collapsed, and symlinks are resolved.
      
        Example:
        Let's suppose you have a source file named `example.cpp`, located in
        `/source` directory.
      
        * If you specify `-store-check-profile=/tmp`, then the profile will be saved
          to `/tmp/<timestamp>-example.cpp.json`
      
        * If you run :program:`clang-tidy` from within `/foo` directory, and specify
          `-store-check-profile=.`, then the profile will still be saved to
          `/foo/<timestamp>-example.cpp.json`
      
      Reviewers: alexfh, sbenza, george.karpenkov, NoQ, aaron.ballman
      
      Reviewed By: alexfh, george.karpenkov, aaron.ballman
      
      Subscribers: Quuxplusone, JonasToth, aaron.ballman, llvm-commits, rja, Eugene.Zelenko, xazax.hun, mgrang, cfe-commits
      
      Tags: #clang-tools-extra
      
      Differential Revision: https://reviews.llvm.org/D46602
      
      llvm-svn: 334101
      a87f1d04
    • Hans Wennborg's avatar
      Relax shtest-run-at-line.py · c4b7e012
      Hans Wennborg authored
      The test was failing on Windows machines which had bash.exe on PATH (but
      not in the so called lit tools dir, containing cmp.exe, grep.exe etc.).
      
      The problem was that the outer lit invocation would load LLVMConfig
      from utils/lit/lit/llvm/config.py, which looks up the tools path with
      getToolsPath(). That has a surprising side effect of also setting
      bashPath, in our case setting it to empty.
      
      The outer lit invocation would thus configure the pdbg0 and pdbg1
      substitutions based on not running with bash.
      
      But the inner lit invocation would not load LLVMConfig, so bash
      would be found on PATH, that would be used as external shell,
      and so the output wouldn't match pdbg0 and pdbg1.
      
      It seems weird to me that getBashPath() will return different results
      depending on whether getToolsPath() has been called before, but I
      also don't know how to fix it properly.
      
      This commit just relaxes the test case, because there doesn't seem
      to be much point in testing for the exact syntax of the run file
      as long as it works.
      
      (See https://crbug.com/850023)
      
      llvm-svn: 334100
      c4b7e012
    • David Green's avatar
      [GlobalMerge] Set the alignment on merged global structs · 25312b2b
      David Green authored
      If no alignment is set, the abi/preferred alignment of structs will be
      used which may be higher than required. This can lead to extra padding
      and in the end an increase in data size.
      
      Differential Revision: https://reviews.llvm.org/D47633
      
      llvm-svn: 334099
      25312b2b
    • Kristof Beyls's avatar
      Avoid UnicodeEncodeError on non-ascii reviewer names · 566c74cc
      Kristof Beyls authored
      ... by using unicode instead of byte strings where non-ascii strings can be
      formatted in.
      
      llvm-svn: 334098
      566c74cc
    • Pierre Gousseau's avatar
      [Driver] Add flag "--dependent-lib=..." when enabling asan or ubsan on PS4. · 1abf9439
      Pierre Gousseau authored
      NFC for targets other than PS4.
      
      Simplify users' workflow when enabling asan or ubsan and calling the linker separately.
      
      Differential Revision: https://reviews.llvm.org/D47375
      
      llvm-svn: 334096
      1abf9439
    • Joel Jones's avatar
      [lld] Add REQUIRES: x86 where needed to tests · a5752e19
      Joel Jones authored
      If building lld without x86 support, tests that require that support should
      be treated as unsupported, not errors.
      
      Tested using:
        1. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64;X86'
           make check-lld
           =>
           Expected Passes    : 1406
           Unsupported Tests  : 287
      
        2. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64'
           make check-lld
           =>
           Expected Passes    : 410
           Unsupported Tests  : 1283
      
      Patch by Joel Jones
      
      Differential Revision: https://reviews.llvm.org/D47748
      
      llvm-svn: 334095
      a5752e19