mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Remove unused functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,9 +58,6 @@ namespace {
|
||||
|
||||
void TransferDeadFlag(MachineInstr *MI, unsigned DstReg,
|
||||
const TargetRegisterInfo *TRI);
|
||||
void TransferKillFlag(MachineInstr *MI, unsigned SrcReg,
|
||||
const TargetRegisterInfo *TRI,
|
||||
bool AddIfNotFound = false);
|
||||
void TransferImplicitDefs(MachineInstr *MI);
|
||||
};
|
||||
|
||||
@@ -87,23 +84,6 @@ LowerSubregsInstructionPass::TransferDeadFlag(MachineInstr *MI,
|
||||
}
|
||||
}
|
||||
|
||||
/// TransferKillFlag - MI is a pseudo-instruction with SrcReg killed,
|
||||
/// and the lowered replacement instructions immediately precede it.
|
||||
/// Mark the replacement instructions with the kill flag.
|
||||
void
|
||||
LowerSubregsInstructionPass::TransferKillFlag(MachineInstr *MI,
|
||||
unsigned SrcReg,
|
||||
const TargetRegisterInfo *TRI,
|
||||
bool AddIfNotFound) {
|
||||
for (MachineBasicBlock::iterator MII =
|
||||
prior(MachineBasicBlock::iterator(MI)); ; --MII) {
|
||||
if (MII->addRegisterKilled(SrcReg, TRI, AddIfNotFound))
|
||||
break;
|
||||
assert(MII != MI->getParent()->begin() &&
|
||||
"copyPhysReg output doesn't reference source register!");
|
||||
}
|
||||
}
|
||||
|
||||
/// TransferImplicitDefs - MI is a pseudo-instruction, and the lowered
|
||||
/// replacement instructions immediately precede it. Copy any implicit-def
|
||||
/// operands from MI to the replacement instruction.
|
||||
|
||||
Reference in New Issue
Block a user