From: Chris Lattner Date: Sun, 23 Aug 2009 01:03:30 +0000 (+0000) Subject: remove some dead print method variants. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=372fefe8d24e40df2390fffeea0dc2dec611f88b;p=oota-llvm.git remove some dead print method variants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79801 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 787b33bc382..7d6ecf9f1b5 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -311,13 +311,7 @@ public: // Debugging methods. void dump() const; void print(std::ostream &OS) const; - void print(std::ostream *OS) const { - if (OS) print(*OS); - } void print(raw_ostream &OS) const; - void print(raw_ostream *OS) const { - if (OS) print(*OS); - } /// getNumber - MachineBasicBlocks are uniquely numbered at the function /// level, unless they're not in a MachineFunction yet, in which case this diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index e4681d9292b..055baac07c1 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -208,9 +208,6 @@ public: /// to the specified stream. /// void print(std::ostream &OS) const; - void print(std::ostream *OS) const { - if (OS) print(*OS); - } /// viewCFG - This function is meant for use from the debugger. You can just /// say 'call F->viewCFG()' and a ghostview window should pop up from the diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index eb9ef954750..238f90568fc 100644 --- a/lib/CodeGen/MachineVerifier.cpp +++ b/lib/CodeGen/MachineVerifier.cpp @@ -232,13 +232,11 @@ MachineVerifier::runOnMachineFunction(MachineFunction &MF) return false; // no changes } -void -MachineVerifier::report(const char *msg, const MachineFunction *MF) -{ +void MachineVerifier::report(const char *msg, const MachineFunction *MF) { assert(MF); *OS << "\n"; if (!foundErrors++) - MF->print(OS); + MF->print(*OS); *OS << "*** Bad machine code: " << msg << " ***\n" << "- function: " << MF->getFunction()->getNameStr() << "\n"; }