[llvm-commits] [llvm] r110101 - /llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Mon Aug 2 21:43:33 PDT 2010
Author: mspencer
Date: Mon Aug 2 23:43:33 2010
New Revision: 110101
URL: http://llvm.org/viewvc/llvm-project?rev=110101&view=rev
Log:
MC: Add time travel support to COFF.
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=110101&r1=110100&r2=110101&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Mon Aug 2 23:43:33 2010
@@ -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 @@
Header.PointerToSymbolTable = offset;
+ Header.TimeDateStamp = sys::TimeValue::now().toEpochTime();
+
// Write it all to disk...
WriteFileHeader(Header);
More information about the llvm-commits
mailing list