summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/Inputs/relocs.py
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-08-11 09:53:07 +0000
committerTim Northover <tnorthover@apple.com>2014-08-11 09:53:07 +0000
commitbb9c88fa73d49539c1a7862e5e8a52531a591902 (patch)
treebf88d84000536d1b9cef7fe7678be5236393d8be /llvm/test/tools/llvm-readobj/Inputs/relocs.py
parent63a25625528248a247a7279b86260bd29c28d3a3 (diff)
downloadbcm5719-llvm-bb9c88fa73d49539c1a7862e5e8a52531a591902.tar.gz
bcm5719-llvm-bb9c88fa73d49539c1a7862e5e8a52531a591902.zip
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
Diffstat (limited to 'llvm/test/tools/llvm-readobj/Inputs/relocs.py')
-rw-r--r--llvm/test/tools/llvm-readobj/Inputs/relocs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-readobj/Inputs/relocs.py b/llvm/test/tools/llvm-readobj/Inputs/relocs.py
index af9459df8ee..c5f87089612 100644
--- a/llvm/test/tools/llvm-readobj/Inputs/relocs.py
+++ b/llvm/test/tools/llvm-readobj/Inputs/relocs.py
@@ -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)]
OpenPOWER on IntegriCloud