mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added back the "wantsDIForwardDecl = false" for LLVM
Not having this extra type information was causing types like enums to come out as 'void' in debug information due to (seemingly) an LLVM bug with forward decls
This commit is contained in:
parent
42452fe09c
commit
939c818581
3 changed files with 18 additions and 7 deletions
|
@ -1663,8 +1663,7 @@ void DbgType::ToString(StringImpl& str, DbgLanguage language, bool allowDirectBf
|
|||
}
|
||||
return;
|
||||
}
|
||||
|
||||
char* nameP = (char*)mTypeName;
|
||||
|
||||
//String combName;
|
||||
/*if (mTemplateParams != NULL)
|
||||
{
|
||||
|
@ -1677,6 +1676,7 @@ void DbgType::ToString(StringImpl& str, DbgLanguage language, bool allowDirectBf
|
|||
{
|
||||
FixName();
|
||||
}
|
||||
char* nameP = (char*)mTypeName;
|
||||
|
||||
if (parent == NULL)
|
||||
{
|
||||
|
@ -2285,7 +2285,17 @@ void DbgModule::Fail(const StringImpl& error)
|
|||
*mFailMsgPtr = error;
|
||||
}
|
||||
|
||||
mDebugger->OutputRawMessage("error " + error + "\n");
|
||||
String errorStr = "error ";
|
||||
if (!mFilePath.IsEmpty())
|
||||
{
|
||||
errorStr += "Error in ";
|
||||
errorStr += mFilePath;
|
||||
errorStr += ": ";
|
||||
}
|
||||
errorStr += error;
|
||||
errorStr += "\n";
|
||||
|
||||
mDebugger->OutputRawMessage(errorStr);
|
||||
mFailed = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue