mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Add MachineFunction::verify() to call the machine code verifier directly.
llvm-svn: 88706
This commit is contained in:
parent
a077364caa
commit
ec4eff6c6a
@ -232,6 +232,10 @@ public:
|
||||
///
|
||||
void dump() const;
|
||||
|
||||
/// verify - Run the current MachineFunction through the machine code
|
||||
/// verifier, useful for debugger use.
|
||||
void verify() const;
|
||||
|
||||
// Provide accessors for the MachineBasicBlock list...
|
||||
typedef BasicBlockListType::iterator iterator;
|
||||
typedef BasicBlockListType::const_iterator const_iterator;
|
||||
|
@ -175,6 +175,10 @@ FunctionPass *llvm::createMachineVerifierPass(bool allowPhysDoubleDefs) {
|
||||
return new MachineVerifier(allowPhysDoubleDefs);
|
||||
}
|
||||
|
||||
void MachineFunction::verify() const {
|
||||
MachineVerifier().runOnMachineFunction(const_cast<MachineFunction&>(*this));
|
||||
}
|
||||
|
||||
bool MachineVerifier::runOnMachineFunction(MachineFunction &MF) {
|
||||
raw_ostream *OutFile = 0;
|
||||
if (OutFileName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user