remove some dead print method variants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-08-23 01:03:30 +00:00
parent b01acfae5b
commit 372fefe8d2
3 changed files with 2 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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";
}