llvm-readobj: zero out timestamp in COFF auto-generated test files.
The timestamp meant these files changed with each invocation of
relocs.py, confusing matters when we add relocations and need to
update the tests.
llvm-svn: 215350
diff --git a/llvm/test/tools/llvm-readobj/Inputs/relocs.py b/llvm/test/tools/llvm-readobj/Inputs/relocs.py
index af9459d..c5f8708 100644
--- a/llvm/test/tools/llvm-readobj/Inputs/relocs.py
+++ b/llvm/test/tools/llvm-readobj/Inputs/relocs.py
@@ -327,6 +327,10 @@
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)]