mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Removed dead method, printPHICopiesForSuccessors().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a36ae8b01
commit
408f9995a1
@ -206,8 +206,6 @@ namespace {
|
||||
bool isGotoCodeNecessary(BasicBlock *From, BasicBlock *To);
|
||||
void printPHICopiesForSuccessor(BasicBlock *CurBlock,
|
||||
BasicBlock *Successor, unsigned Indent);
|
||||
void printPHICopiesForSuccessors(BasicBlock *CurBlock,
|
||||
unsigned Indent);
|
||||
void printBranchToBlock(BasicBlock *CurBlock, BasicBlock *SuccBlock,
|
||||
unsigned Indent);
|
||||
void printIndexingExpression(Value *Ptr, gep_type_iterator I,
|
||||
@ -1249,25 +1247,6 @@ void CWriter::printPHICopiesForSuccessor (BasicBlock *CurBlock,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CWriter::printPHICopiesForSuccessors(BasicBlock *CurBlock,
|
||||
unsigned Indent) {
|
||||
for (succ_iterator SI = succ_begin(CurBlock), E = succ_end(CurBlock);
|
||||
SI != E; ++SI)
|
||||
for (BasicBlock::iterator I = SI->begin(); isa<PHINode>(I); ++I) {
|
||||
PHINode *PN = cast<PHINode>(I);
|
||||
// Now we have to do the printing.
|
||||
Value *IV = PN->getIncomingValueForBlock(CurBlock);
|
||||
if (!isa<UndefValue>(IV)) {
|
||||
Out << std::string(Indent, ' ');
|
||||
Out << " " << Mang->getValueName(I) << "__PHI_TEMPORARY = ";
|
||||
writeOperand(IV);
|
||||
Out << "; /* for PHI node */\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
|
||||
unsigned Indent) {
|
||||
if (isGotoCodeNecessary(CurBB, Succ)) {
|
||||
|
@ -206,8 +206,6 @@ namespace {
|
||||
bool isGotoCodeNecessary(BasicBlock *From, BasicBlock *To);
|
||||
void printPHICopiesForSuccessor(BasicBlock *CurBlock,
|
||||
BasicBlock *Successor, unsigned Indent);
|
||||
void printPHICopiesForSuccessors(BasicBlock *CurBlock,
|
||||
unsigned Indent);
|
||||
void printBranchToBlock(BasicBlock *CurBlock, BasicBlock *SuccBlock,
|
||||
unsigned Indent);
|
||||
void printIndexingExpression(Value *Ptr, gep_type_iterator I,
|
||||
@ -1249,25 +1247,6 @@ void CWriter::printPHICopiesForSuccessor (BasicBlock *CurBlock,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CWriter::printPHICopiesForSuccessors(BasicBlock *CurBlock,
|
||||
unsigned Indent) {
|
||||
for (succ_iterator SI = succ_begin(CurBlock), E = succ_end(CurBlock);
|
||||
SI != E; ++SI)
|
||||
for (BasicBlock::iterator I = SI->begin(); isa<PHINode>(I); ++I) {
|
||||
PHINode *PN = cast<PHINode>(I);
|
||||
// Now we have to do the printing.
|
||||
Value *IV = PN->getIncomingValueForBlock(CurBlock);
|
||||
if (!isa<UndefValue>(IV)) {
|
||||
Out << std::string(Indent, ' ');
|
||||
Out << " " << Mang->getValueName(I) << "__PHI_TEMPORARY = ";
|
||||
writeOperand(IV);
|
||||
Out << "; /* for PHI node */\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CWriter::printBranchToBlock(BasicBlock *CurBB, BasicBlock *Succ,
|
||||
unsigned Indent) {
|
||||
if (isGotoCodeNecessary(CurBB, Succ)) {
|
||||
|
Loading…
Reference in New Issue
Block a user