mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-16 23:38:40 +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.
|
// Debugging methods.
|
||||||
void dump() const;
|
void dump() const;
|
||||||
void print(std::ostream &OS) 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;
|
||||||
void print(raw_ostream *OS) const {
|
|
||||||
if (OS) print(*OS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getNumber - MachineBasicBlocks are uniquely numbered at the function
|
/// getNumber - MachineBasicBlocks are uniquely numbered at the function
|
||||||
/// level, unless they're not in a MachineFunction yet, in which case this
|
/// level, unless they're not in a MachineFunction yet, in which case this
|
||||||
|
@ -208,9 +208,6 @@ public:
|
|||||||
/// to the specified stream.
|
/// to the specified stream.
|
||||||
///
|
///
|
||||||
void print(std::ostream &OS) const;
|
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
|
/// 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
|
/// 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
|
return false; // no changes
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void MachineVerifier::report(const char *msg, const MachineFunction *MF) {
|
||||||
MachineVerifier::report(const char *msg, const MachineFunction *MF)
|
|
||||||
{
|
|
||||||
assert(MF);
|
assert(MF);
|
||||||
*OS << "\n";
|
*OS << "\n";
|
||||||
if (!foundErrors++)
|
if (!foundErrors++)
|
||||||
MF->print(OS);
|
MF->print(*OS);
|
||||||
*OS << "*** Bad machine code: " << msg << " ***\n"
|
*OS << "*** Bad machine code: " << msg << " ***\n"
|
||||||
<< "- function: " << MF->getFunction()->getNameStr() << "\n";
|
<< "- function: " << MF->getFunction()->getNameStr() << "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user