diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-10-13 05:54:07 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-10-13 05:54:07 +0000 |
commit | 9ee5c5077690a4de31e22bb9e135deb6da3f68fb (patch) | |
tree | 417ddc48a3122b236e6fa68a7edfe8a1efd7a2b2 /lib/Analysis | |
parent | 6688c4a742b3d4ad511e35b463c2fe0f8abc04ab (diff) | |
download | external_llvm-9ee5c5077690a4de31e22bb9e135deb6da3f68fb.zip external_llvm-9ee5c5077690a4de31e22bb9e135deb6da3f68fb.tar.gz external_llvm-9ee5c5077690a4de31e22bb9e135deb6da3f68fb.tar.bz2 |
RegionInfo: Allow to set the parent region of a basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/RegionInfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Analysis/RegionInfo.cpp b/lib/Analysis/RegionInfo.cpp index 6593f07..99c2eed 100644 --- a/lib/Analysis/RegionInfo.cpp +++ b/lib/Analysis/RegionInfo.cpp @@ -659,11 +659,14 @@ Region *RegionInfo::getRegionFor(BasicBlock *BB) const { return I != BBtoRegion.end() ? I->second : 0; } +void RegionInfo::setRegionFor(BasicBlock *BB, Region *R) { + BBtoRegion[BB] = R; +} + Region *RegionInfo::operator[](BasicBlock *BB) const { return getRegionFor(BB); } - BasicBlock *RegionInfo::getMaxRegionExit(BasicBlock *BB) const { BasicBlock *Exit = NULL; |