From 408f9995a1d04ca34a68bb470b0a7584b6d10121 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Mon, 25 Oct 2004 18:41:50 +0000 Subject: [PATCH] Removed dead method, printPHICopiesForSuccessors(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17216 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 21 --------------------- lib/Target/CBackend/Writer.cpp | 21 --------------------- 2 files changed, 42 deletions(-) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 16d83c37717..3fec86a81d5 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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(I); ++I) { - PHINode *PN = cast(I); - // Now we have to do the printing. - Value *IV = PN->getIncomingValueForBlock(CurBlock); - if (!isa(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)) { diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 16d83c37717..3fec86a81d5 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -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(I); ++I) { - PHINode *PN = cast(I); - // Now we have to do the printing. - Value *IV = PN->getIncomingValueForBlock(CurBlock); - if (!isa(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)) { -- 2.34.1