From ccd43758ada7e0991ac13e79975b7f4641e31520 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 16 Oct 2017 22:37:56 +0000 Subject: [PATCH] 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 llvm-svn: 315948 --- lld/COFF/DriverUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lld/COFF/DriverUtils.cpp b/lld/COFF/DriverUtils.cpp index 82179fa..5ca9179 100644 --- a/lld/COFF/DriverUtils.cpp +++ b/lld/COFF/DriverUtils.cpp @@ -423,7 +423,8 @@ createMemoryBufferForManifestRes(size_t ManifestSize) { 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) { -- 2.7.4