Skip to content

Commit 425e148

Browse files
committed
[LiveDebugValues] Remove unused static function
Last use removed in #7715
1 parent 21398db commit 425e148

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,33 +2203,6 @@ void VarLocBasedLDV::recordEntryValue(const MachineInstr &MI,
22032203
OpenRanges.insert(EntryValLocIDs, EntryValLocAsBackup);
22042204
}
22052205

2206-
static bool isSwiftAsyncContext(const MachineInstr &MI) {
2207-
const llvm::MachineFunction *MF = MI.getParent()->getParent();
2208-
const llvm::Function &F = MF->getFunction();
2209-
// FIXME: Missing patch.
2210-
//if (F.getCallingConv() != CallingConv::SwiftTail)
2211-
// return false;
2212-
for (const MachineOperand &Op : MI.debug_operands()) {
2213-
if (!Op.isReg())
2214-
return false;
2215-
bool found = false;
2216-
unsigned Reg = Op.getReg();
2217-
unsigned I = 0;
2218-
if (MF->getProperties().hasProperty(
2219-
MachineFunctionProperties::Property::TracksLiveness))
2220-
for (auto R : MF->getRegInfo().liveins()) {
2221-
if (R.first == Reg && F.hasParamAttribute(I, Attribute::SwiftAsync)) {
2222-
found = true;
2223-
break;
2224-
}
2225-
++I;
2226-
}
2227-
if (!found)
2228-
return false;
2229-
}
2230-
return true;
2231-
}
2232-
22332206
/// Calculate the liveness information for the given machine function and
22342207
/// extend ranges across basic blocks.
22352208
bool VarLocBasedLDV::ExtendRanges(MachineFunction &MF,

0 commit comments

Comments
 (0)