Added Statement::ContainsAddress().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31168 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
470c2c49a9
commit
1df9bf1220
@ -71,3 +71,10 @@ ContiguousStatement::AddressRangeAt(int32 index) const
|
|||||||
{
|
{
|
||||||
return index == 0 ? fRange : TargetAddressRange();
|
return index == 0 ? fRange : TargetAddressRange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
ContiguousStatement::ContainsAddress(target_addr_t address) const
|
||||||
|
{
|
||||||
|
return fRange.Contains(address);
|
||||||
|
}
|
||||||
|
@ -23,6 +23,9 @@ public:
|
|||||||
|
|
||||||
virtual int32 CountAddressRanges() const = 0;
|
virtual int32 CountAddressRanges() const = 0;
|
||||||
virtual TargetAddressRange AddressRangeAt(int32 index) const = 0;
|
virtual TargetAddressRange AddressRangeAt(int32 index) const = 0;
|
||||||
|
|
||||||
|
virtual bool ContainsAddress(target_addr_t address)
|
||||||
|
const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -51,6 +54,8 @@ public:
|
|||||||
virtual int32 CountAddressRanges() const;
|
virtual int32 CountAddressRanges() const;
|
||||||
virtual TargetAddressRange AddressRangeAt(int32 index) const;
|
virtual TargetAddressRange AddressRangeAt(int32 index) const;
|
||||||
|
|
||||||
|
virtual bool ContainsAddress(target_addr_t address) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
TargetAddressRange fRange;
|
TargetAddressRange fRange;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user