[MC, COFF] Unbreak support for COFF timestamps
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 21 Dec 2015 08:03:07 +0000 (08:03 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 21 Dec 2015 08:03:07 +0000 (08:03 +0000)
commit827bc7fe53daee3885a03533195c7b33b21e0f88
tree06b71d91b212db8d840be04c378b4112490b3320
parentd644801757bb1e2ad6a7a9715b3e57288c197ada
[MC, COFF] Unbreak support for COFF timestamps

Support for COFF timestamps was unintentionally broken in r246905 when
it was conditionally available depending on whether or not LLVM was
configured with LLVM_ENABLE_TIMESTAMPS.  However, Config/config.h was
never included which essentially broke the feature.  Due to lax testing,
the breakage was never identified until we observed strange failures
during incremental links of Chromium.

This issue is resolved by simply including Config/config.h in
WinCOFFObjectWriter and teaching lit that the MC/COFF/timestamp.s test
is conditionally supported depending on LLVM_ENABLE_TIMESTAMPS.  With
this in place, we can strengthen the test to ensure that it will not
accidentally get broken in the future.

This fixes PR25891.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256137 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/WinCOFFObjectWriter.cpp
test/MC/COFF/timestamp.s
test/lit.cfg
test/lit.site.cfg.in