mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Attach a DebugLoc to a GC point in order to get precise information in the JIT of a GC point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -345,13 +345,15 @@ void MachineCodeAnalysis::VisitCallPoint(MachineBasicBlock::iterator CI) {
|
||||
MachineBasicBlock::iterator RAI = CI;
|
||||
++RAI;
|
||||
|
||||
if (FI->getStrategy().needsSafePoint(GC::PreCall))
|
||||
FI->addSafePoint(GC::PreCall, InsertLabel(*CI->getParent(), CI,
|
||||
CI->getDebugLoc()));
|
||||
if (FI->getStrategy().needsSafePoint(GC::PreCall)) {
|
||||
MCSymbol* Label = InsertLabel(*CI->getParent(), CI, CI->getDebugLoc());
|
||||
FI->addSafePoint(GC::PreCall, Label, CI->getDebugLoc());
|
||||
}
|
||||
|
||||
if (FI->getStrategy().needsSafePoint(GC::PostCall))
|
||||
FI->addSafePoint(GC::PostCall, InsertLabel(*CI->getParent(), RAI,
|
||||
CI->getDebugLoc()));
|
||||
if (FI->getStrategy().needsSafePoint(GC::PostCall)) {
|
||||
MCSymbol* Label = InsertLabel(*CI->getParent(), RAI, CI->getDebugLoc());
|
||||
FI->addSafePoint(GC::PostCall, Label, CI->getDebugLoc());
|
||||
}
|
||||
}
|
||||
|
||||
void MachineCodeAnalysis::FindSafePoints(MachineFunction &MF) {
|
||||
|
Reference in New Issue
Block a user