mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-08 11:37:03 +00:00
MC: Add time travel support to COFF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110101 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef1f8c3cc3
commit
ab3de49c48
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user