Skip to content
  1. Mar 09, 2017
  2. Mar 08, 2017
    • Francis Ricci's avatar
      Use correct function signature for strerror_r interceptor · 05048633
      Francis Ricci authored
      There are two possible return values for strerror_r:
      
      On OS X, the return value is always `int`.
      On Linux, the return value can be either `char *` or `int`, depending
      on the value of:
      `(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE`
      
      Because OS X interceptors require a matching function signature,
      split out the two cases into separate interceptors, using the above
      information to determine the correct signature for a given build.
      
      llvm-svn: 297315
      05048633
    • Zachary Turner's avatar
      [Support] Add llvm::sys::fs::remove_directories. · 260bda3f
      Zachary Turner authored
      We already have a function create_directories() which can create
      an entire tree, and remove() which can remove an empty directory,
      but we do not have remove_directories() which can remove an entire
      tree.  This patch adds such a function.
      
      Because removing a directory tree can have dangerous consequences
      when the tree contains a directory symlink, the patch here updates
      the existing directory_iterator construct to optionally not follow
      symlinks (previously it would always follow symlinks).  The delete
      algorithm uses this flag so that for symlinks, only the links are
      removed, and not the targets.
      
      On Windows this is implemented with SHFileOperation, which also
      does not recurse into symbolic links or junctions.
      
      Differential Revision: https://reviews.llvm.org/D30676
      
      llvm-svn: 297314
      260bda3f
    • Rafael Espindola's avatar
      Remove DefinedSynthetic. · 5616adf6
      Rafael Espindola authored
      With this we have a single section hierarchy. It is a bit less code,
      but the main advantage will be in a future patch being able to handle
      
      foo = symbol_in_obj;
      
      in a linker script. Currently that fails since we try to find the
      output section of symbol_in_obj.  With this we should be able to just
      return an InputSection from the expression.
      
      llvm-svn: 297313
      5616adf6
    • Konstantin Zhuravlyov's avatar
      Driver/ToolChains: Mips -> MipsLinux · e37b32c4
      Konstantin Zhuravlyov authored
        - Mips is architecture, not a toolchain
        - Might help eliminate the confusion in the future by not having header files with the same name
      
      Differential Revision: https://reviews.llvm.org/D30753
      
      llvm-svn: 297312
      e37b32c4
    • Alexander Kornienko's avatar
Loading