[PATCH] D117333: [dsymutil] Don't print swift interface timestamp warning if we have no timestamp
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 14 09:48:39 PST 2022
JDevlieghere created this revision.
JDevlieghere added a reviewer: aprantl.
JDevlieghere requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
If we have no timestamp, don't print the corresponding warning. The binary holder already successfully ignores these cases, but the warning for swift interface files was lacking it.
rdar://86036385
https://reviews.llvm.org/D117333
Files:
llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
Index: llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
===================================================================
--- llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
+++ llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
@@ -414,7 +414,8 @@
auto ModificationTime =
std::chrono::time_point_cast<std::chrono::seconds>(
Stat.getLastModificationTime());
- if (ModificationTime != Obj->getTimestamp()) {
+ if (Obj->getTimestamp() != sys::TimePoint<>() &&
+ ModificationTime != Obj->getTimestamp()) {
// Not using the helper here as we can easily stream TimePoint<>.
WithColor::warning()
<< File << ": timestamp mismatch between swift interface file ("
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117333.400052.patch
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220114/3e31e0ff/attachment.bin>
More information about the llvm-commits
mailing list