mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +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:
@ -31,6 +31,8 @@
|
|||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
|
|
||||||
|
#include "llvm/System/TimeValue.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
@ -687,6 +689,8 @@ void WinCOFFObjectWriter::WriteObject(const MCAssembler &Asm,
|
|||||||
|
|
||||||
Header.PointerToSymbolTable = offset;
|
Header.PointerToSymbolTable = offset;
|
||||||
|
|
||||||
|
Header.TimeDateStamp = sys::TimeValue::now().toEpochTime();
|
||||||
|
|
||||||
// Write it all to disk...
|
// Write it all to disk...
|
||||||
WriteFileHeader(Header);
|
WriteFileHeader(Header);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user