From: Michael J. Spencer Date: Tue, 3 Aug 2010 04:43:33 +0000 (+0000) Subject: MC: Add time travel support to COFF. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ab3de49c48bd3282421ce24323fb6b868a3da6cc;p=oota-llvm.git MC: Add time travel support to COFF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110101 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);