forked from OSchip/llvm-project
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:
parent
0bd2825517
commit
ccd43758ad
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue