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

Zero Omega via All-commits all-commits at lists.llvm.org
Tue Dec 29 20:32:08 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1d0589266865998785c996668d828445f10fc98
      https://github.com/llvm/llvm-project/commit/a1d0589266865998785c996668d828445f10fc98
  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