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
This commit is contained in:
Peter Collingbourne 2017-10-16 22:37:56 +00:00
parent 0bd2825517
commit ccd43758ad
1 changed files with 2 additions and 1 deletions

View File

@ -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) {