mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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:
parent
b01acfae5b
commit
372fefe8d2
@ -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
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user