From a6cfbeb98cba5f5905704ea6a7335fcde9ad074c Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 3 Aug 2010 04:43:33 +0000 Subject: [PATCH] MC: Add time travel support to COFF. llvm-svn: 110101 --- llvm/lib/MC/WinCOFFObjectWriter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp index 1a020ea80f75..b7a669252c1e 100644 --- a/llvm/lib/MC/WinCOFFObjectWriter.cpp +++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp @@ -31,6 +31,8 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/System/TimeValue.h" + #include using namespace llvm; @@ -687,6 +689,8 @@ void WinCOFFObjectWriter::WriteObject(const MCAssembler &Asm, Header.PointerToSymbolTable = offset; + Header.TimeDateStamp = sys::TimeValue::now().toEpochTime(); + // Write it all to disk... WriteFileHeader(Header);