From ab3de49c48bd3282421ce24323fb6b868a3da6cc 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110101 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/WinCOFFObjectWriter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 1a020ea80f7..b7a669252c1 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/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); -- 2.34.1