mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
DupDebugLocation support
This commit is contained in:
parent
577cd2e270
commit
d2edcd2ae9
3 changed files with 10 additions and 0 deletions
|
@ -4584,6 +4584,12 @@ void BfIRBuilder::RestoreDebugLocation()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BfIRBuilder::DupDebugLocation()
|
||||||
|
{
|
||||||
|
WriteCmd(BfIRCmd_DupDebugLocation);
|
||||||
|
NEW_CMD_INSERTED;
|
||||||
|
}
|
||||||
|
|
||||||
bool BfIRBuilder::HasDebugLocation()
|
bool BfIRBuilder::HasDebugLocation()
|
||||||
{
|
{
|
||||||
return mHasDebugLoc;
|
return mHasDebugLoc;
|
||||||
|
|
|
@ -283,6 +283,7 @@ enum BfIRCmd : uint8
|
||||||
|
|
||||||
BfIRCmd_SaveDebugLocation,
|
BfIRCmd_SaveDebugLocation,
|
||||||
BfIRCmd_RestoreDebugLocation,
|
BfIRCmd_RestoreDebugLocation,
|
||||||
|
BfIRCmd_DupDebugLocation,
|
||||||
BfIRCmd_ClearDebugLocation,
|
BfIRCmd_ClearDebugLocation,
|
||||||
BfIRCmd_ClearDebugLocationInst,
|
BfIRCmd_ClearDebugLocationInst,
|
||||||
BfIRCmd_ClearDebugLocationInstLast,
|
BfIRCmd_ClearDebugLocationInstLast,
|
||||||
|
@ -1181,6 +1182,7 @@ public:
|
||||||
|
|
||||||
void SaveDebugLocation();
|
void SaveDebugLocation();
|
||||||
void RestoreDebugLocation();
|
void RestoreDebugLocation();
|
||||||
|
void DupDebugLocation();
|
||||||
bool HasDebugLocation();
|
bool HasDebugLocation();
|
||||||
void ClearDebugLocation();
|
void ClearDebugLocation();
|
||||||
void ClearDebugLocation(BfIRValue inst);
|
void ClearDebugLocation(BfIRValue inst);
|
||||||
|
|
|
@ -2599,6 +2599,8 @@ void BfIRCodeGen::HandleNextCmd()
|
||||||
mSavedDebugLocs.pop_back();
|
mSavedDebugLocs.pop_back();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case BfIRCmd_DupDebugLocation:
|
||||||
|
break;
|
||||||
case BfIRCmd_ClearDebugLocation:
|
case BfIRCmd_ClearDebugLocation:
|
||||||
{
|
{
|
||||||
mDebugLoc = llvm::DebugLoc();
|
mDebugLoc = llvm::DebugLoc();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue