mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
RegionInfo: Allow to update exit and entry of a region.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -72,6 +72,15 @@ Region::~Region() {
|
||||
delete *I;
|
||||
}
|
||||
|
||||
void Region::replaceEntry(BasicBlock *BB) {
|
||||
entry.setPointer(BB);
|
||||
}
|
||||
|
||||
void Region::replaceExit(BasicBlock *BB) {
|
||||
assert(exit && "No exit to replace!");
|
||||
exit = BB;
|
||||
}
|
||||
|
||||
bool Region::contains(const BasicBlock *B) const {
|
||||
BasicBlock *BB = const_cast<BasicBlock*>(B);
|
||||
|
||||
|
Reference in New Issue
Block a user