diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-08-03 04:43:33 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-08-03 04:43:33 +0000 |
commit | ab3de49c48bd3282421ce24323fb6b868a3da6cc (patch) | |
tree | 026285ede930c294dec6258538177dba063daeca | |
parent | ef1f8c3cc3b509f83b1e887505881e4506602703 (diff) | |
download | external_llvm-ab3de49c48bd3282421ce24323fb6b868a3da6cc.zip external_llvm-ab3de49c48bd3282421ce24323fb6b868a3da6cc.tar.gz external_llvm-ab3de49c48bd3282421ce24323fb6b868a3da6cc.tar.bz2 |
MC: Add time travel support to COFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110101 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/MC/WinCOFFObjectWriter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 1a020ea..b7a6692 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 <cstdio> 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); |