mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed emit file paths with LLVM link
This commit is contained in:
parent
50eb4dbb9d
commit
f595434086
1 changed files with 9 additions and 4 deletions
|
@ -3451,6 +3451,13 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
|
|||
_FlushDeferredVariableLocations();
|
||||
}
|
||||
|
||||
static void FixEmitFileName(const char*& fileName)
|
||||
{
|
||||
const char* emitPtr = strstr(fileName, "$Emit$");
|
||||
if (emitPtr != NULL)
|
||||
fileName = emitPtr;
|
||||
}
|
||||
|
||||
CvCompileUnit* COFF::ParseCompileUnit(CvModuleInfo* moduleInfo, CvCompileUnit* compileUnit, uint8* sectionData, int sectionSize)
|
||||
{
|
||||
BP_ZONE("COFF::ParseCompileUnit");
|
||||
|
@ -3648,8 +3655,7 @@ CvCompileUnit* COFF::ParseCompileUnit(CvModuleInfo* moduleInfo, CvCompileUnit* c
|
|||
|
||||
const char* fileName = mStringTable.mStrTable + fileTableOfs;
|
||||
|
||||
if ((fileName[0] == '\\') && (fileName[1] == '$'))
|
||||
fileName++;
|
||||
FixEmitFileName(fileName);
|
||||
|
||||
DbgSrcFile* srcFile = NULL;
|
||||
|
||||
|
@ -4696,8 +4702,7 @@ void COFF::ScanCompileUnit(int compileUnitId)
|
|||
else
|
||||
{
|
||||
const char* fileName = mStringTable.mStrTable + fileTableOfs;
|
||||
if ((fileName[0] == '\\') && (fileName[1] == '$'))
|
||||
fileName++;
|
||||
FixEmitFileName(fileName);
|
||||
srcFile = AddSrcFile(NULL, fileName);
|
||||
mSrcFileDeferredRefs.Add(srcFile);
|
||||
*srcFilePtr = srcFile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue