2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 // #pragma mark - Statement
12 Statement::~Statement()
17 // #pragma mark - AbstractStatement
20 AbstractStatement::AbstractStatement(const SourceLocation
& start
)
28 AbstractStatement::StartSourceLocation() const
34 // #pragma mark - ContiguousStatement
37 ContiguousStatement::ContiguousStatement(const SourceLocation
& start
,
38 const TargetAddressRange
& range
)
40 AbstractStatement(start
),
47 ContiguousStatement::CoveringAddressRange() const
54 ContiguousStatement::CountAddressRanges() const
61 ContiguousStatement::AddressRangeAt(int32 index
) const
63 return index
== 0 ? fRange
: TargetAddressRange();
68 ContiguousStatement::ContainsAddress(target_addr_t address
) const
70 return fRange
.Contains(address
);