[all-commits] [llvm/llvm-project] 79c199: [llvm-objcopy][NFC] refactor restoreStatOnFile out...

avl-llvm via All-commits all-commits at lists.llvm.org
Fri Apr 22 10:08:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79c1991010bda4eb2950e164ba0df4bde4fafa76
      https://github.com/llvm/llvm-project/commit/79c1991010bda4eb2950e164ba0df4bde4fafa76
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Support/FileUtilities.h
    M llvm/lib/Support/FileUtilities.cpp
    M llvm/tools/llvm-objcopy/llvm-objcopy.cpp

  Log Message:
  -----------
  [llvm-objcopy][NFC] refactor restoreStatOnFile out of llvm-objcopy.

Functionality of restoreStatOnFile may be reused. Move it into
FileUtilities.cpp. Create helper class FilePermissionsApplier
to store and apply permissions.

Differential Revision: https://reviews.llvm.org/D123821




More information about the All-commits mailing list