[all-commits] [llvm/llvm-project] fddb41: [llvm-elfabi] Add flag to preserve timestamp when ...

Zero Omega via All-commits all-commits at lists.llvm.org
Tue Dec 29 15:10:09 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fddb41744958d21635a60622cfb4067122810bcc
      https://github.com/llvm/llvm-project/commit/fddb41744958d21635a60622cfb4067122810bcc
  Author: Haowei Wu <haowei at google.com>
  Date:   2020-12-29 (Tue, 29 Dec 2020)

  Changed paths:
    M llvm/include/llvm/InterfaceStub/ELFObjHandler.h
    M llvm/lib/InterfaceStub/ELFObjHandler.cpp
    A llvm/test/tools/llvm-elfabi/preserve-dates-stub.test
    A llvm/test/tools/llvm-elfabi/preserve-dates-tbe.test
    M llvm/tools/llvm-elfabi/llvm-elfabi.cpp

  Log Message:
  -----------
  [llvm-elfabi] Add flag to preserve timestamp when output is the same

This change adds '--write-if-changed' flag to llvm-elfabi tool. When
enabled, llvm-elfabi will not overwrite the existing file if the
content of the file will not be changed, which preserves the
timestamp.

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




More information about the All-commits mailing list