зеркало из https://github.com/microsoft/clang-1.git
ASTContext is now a reference member of StoreManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
36d02e0984
Коммит
2a393db096
|
@ -41,6 +41,7 @@ protected:
|
|||
|
||||
/// MRMgr - Manages region objects associated with this StoreManager.
|
||||
MemRegionManager &MRMgr;
|
||||
ASTContext &Ctx;
|
||||
|
||||
StoreManager(GRStateManager &stateMgr);
|
||||
|
||||
|
|
|
@ -179,8 +179,8 @@ void FlatStoreManager::iterBindings(Store store, BindingsHandler& f) {
|
|||
Interval FlatStoreManager::RegionToInterval(const MemRegion *R) {
|
||||
switch (R->getKind()) {
|
||||
case MemRegion::VarRegionKind: {
|
||||
QualType T = cast<VarRegion>(R)->getValueType(StateMgr.getContext());
|
||||
uint64_t Size = StateMgr.getContext().getTypeSize(T);
|
||||
QualType T = cast<VarRegion>(R)->getValueType(Ctx);
|
||||
uint64_t Size = Ctx.getTypeSize(T);
|
||||
return Interval(0, Size-1);
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -19,7 +19,7 @@ using namespace clang;
|
|||
|
||||
StoreManager::StoreManager(GRStateManager &stateMgr)
|
||||
: ValMgr(stateMgr.getValueManager()), StateMgr(stateMgr),
|
||||
MRMgr(ValMgr.getRegionManager()) {}
|
||||
MRMgr(ValMgr.getRegionManager()), Ctx(stateMgr.getContext()) {}
|
||||
|
||||
const MemRegion *StoreManager::MakeElementRegion(const MemRegion *Base,
|
||||
QualType EleTy, uint64_t index) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче