[lld] r315948 - COFF: Give manifest resource file a name.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 16 15:37:56 PDT 2017
Author: pcc
Date: Mon Oct 16 15:37:56 2017
New Revision: 315948
URL: http://llvm.org/viewvc/llvm-project?rev=315948&view=rev
Log:
COFF: Give manifest resource file a name.
Without this, /linkrepro would create an invalid tar file.
No tests because this requires Windows and the linkrepro tests
require not-Windows.
Differential Revision: https://reviews.llvm.org/D38973
Modified:
lld/trunk/COFF/DriverUtils.cpp
Modified: lld/trunk/COFF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/DriverUtils.cpp?rev=315948&r1=315947&r2=315948&view=diff
==============================================================================
--- lld/trunk/COFF/DriverUtils.cpp (original)
+++ lld/trunk/COFF/DriverUtils.cpp Mon Oct 16 15:37:56 2017
@@ -423,7 +423,8 @@ createMemoryBufferForManifestRes(size_t
sizeof(object::WinResHeaderPrefix) + sizeof(object::WinResIDs) +
sizeof(object::WinResHeaderSuffix) + ManifestSize,
object::WIN_RES_DATA_ALIGNMENT);
- return MemoryBuffer::getNewMemBuffer(ResSize);
+ return MemoryBuffer::getNewMemBuffer(ResSize,
+ Config->OutputFile + ".manifest.res");
}
static void writeResFileHeader(char *&Buf) {
More information about the llvm-commits
mailing list