llvm-readobj: zero out timestamp in COFF auto-generated test files.
[oota-llvm.git] / test / tools / llvm-readobj / Inputs / relocs.py
index af9459df8ee2291b8e21ecd1c37dd41f4e281478..c5f87089612ae01a505a43ba51deafd9677bcf71 100644 (file)
@@ -327,6 +327,10 @@ def patchCoff(path, relocs):
 
   machine_type            = f.uint16()
   section_count           = f.uint16()
+
+  # Zero out timestamp to prevent churn when regenerating COFF files.
+  f.writeUInt32(0)
+
   f.seek(20)
   sections = [CoffSection(f) for idx in range(section_count)]