diff options
author | John Criswell <criswell@uiuc.edu> | 2004-10-25 18:41:50 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-10-25 18:41:50 +0000 |
commit | 408f9995a1d04ca34a68bb470b0a7584b6d10121 (patch) | |
tree | 00401ad17fef5a1005808df755e0c8b276c721c6 /lib/Target/CBackend | |
parent | 7a36ae8b0103088328e3a4992ac08b3dce312248 (diff) | |
download | external_llvm-408f9995a1d04ca34a68bb470b0a7584b6d10121.zip external_llvm-408f9995a1d04ca34a68bb470b0a7584b6d10121.tar.gz external_llvm-408f9995a1d04ca34a68bb470b0a7584b6d10121.tar.bz2 |
Removed dead method, printPHICopiesForSuccessors().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 21 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 21 |
2 files changed, 0 insertions, 42 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 16d83c3..3fec86a 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<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)) { diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 16d83c3..3fec86a 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<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)) { |