mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Restore dump() methods to Loop and MachineLoop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -588,6 +588,8 @@ public:
|
||||
/// block, return that block. Otherwise return null.
|
||||
BasicBlock *getUniqueExitBlock() const;
|
||||
|
||||
void dump() const;
|
||||
|
||||
private:
|
||||
friend class LoopInfoBase<BasicBlock, Loop>;
|
||||
explicit Loop(BasicBlock *BB) : LoopBase<BasicBlock, Loop>(BB) {}
|
||||
|
@@ -49,6 +49,8 @@ public:
|
||||
/// contiguous with the part the contains the header.
|
||||
MachineBasicBlock *getBottomBlock();
|
||||
|
||||
void dump() const;
|
||||
|
||||
private:
|
||||
friend class LoopInfoBase<MachineBasicBlock, MachineLoop>;
|
||||
explicit MachineLoop(MachineBasicBlock *MBB)
|
||||
|
@@ -21,6 +21,7 @@
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/Support/CFG.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/ADT/DepthFirstIterator.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include <algorithm>
|
||||
@@ -385,6 +386,10 @@ BasicBlock *Loop::getUniqueExitBlock() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Loop::dump() const {
|
||||
print(dbgs());
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// LoopInfo implementation
|
||||
//
|
||||
|
@@ -17,6 +17,7 @@
|
||||
#include "llvm/CodeGen/MachineLoopInfo.h"
|
||||
#include "llvm/CodeGen/MachineDominators.h"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
@@ -73,3 +74,7 @@ MachineBasicBlock *MachineLoop::getBottomBlock() {
|
||||
}
|
||||
return BotMBB;
|
||||
}
|
||||
|
||||
void MachineLoop::dump() const {
|
||||
print(dbgs());
|
||||
}
|
||||
|
Reference in New Issue
Block a user