mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
switch GC_LABEL to use an MCSymbol operand instead of a label ID operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -71,9 +71,9 @@ namespace {
|
||||
|
||||
void FindSafePoints(MachineFunction &MF);
|
||||
void VisitCallPoint(MachineBasicBlock::iterator MI);
|
||||
unsigned InsertLabel(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI,
|
||||
DebugLoc DL) const;
|
||||
MCSymbol *InsertLabel(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI,
|
||||
DebugLoc DL) const;
|
||||
|
||||
void FindStackOffsets(MachineFunction &MF);
|
||||
|
||||
@ -329,14 +329,11 @@ void MachineCodeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequired<GCModuleInfo>();
|
||||
}
|
||||
|
||||
unsigned MachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI,
|
||||
DebugLoc DL) const {
|
||||
unsigned Label = MMI->NextLabelID();
|
||||
|
||||
BuildMI(MBB, MI, DL,
|
||||
TII->get(TargetOpcode::GC_LABEL)).addImm(Label);
|
||||
|
||||
MCSymbol *MachineCodeAnalysis::InsertLabel(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator MI,
|
||||
DebugLoc DL) const {
|
||||
MCSymbol *Label = MMI->getLabelSym(MMI->NextLabelID());
|
||||
BuildMI(MBB, MI, DL, TII->get(TargetOpcode::GC_LABEL)).addSym(Label);
|
||||
return Label;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user