Add isGlobalsRegion() predicate to MemRegionManager.

llvm-svn: 58313
This commit is contained in:
Zhongxing Xu 2008-10-28 05:15:23 +00:00
parent 9f854697e4
commit 382c1a7c7d
1 changed files with 5 additions and 0 deletions

View File

@ -418,6 +418,11 @@ public:
/// getUnknownRegion - Retrieve the memory region associated with unknown
/// memory space.
MemSpaceRegion* getUnknownRegion();
bool isGlobalsRegion(const MemRegion* R) {
assert(R && globals);
return R == globals;
}
/// getCompoundLiteralRegion - Retrieve the region associated with a
/// given CompoundLiteral.