Skip to content
Snippets Groups Projects
Commit 3857016d authored by whh8b's avatar whh8b
Browse files

Track dollop truncation.

parent 1b2e026f
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
static Dollop_t *CreateNewDollop(libIRDB::Instruction_t *start);
Dollop_t(libIRDB::Instruction_t *start);
Dollop_t() { m_size = 0; }
Dollop_t() { m_size = 0; m_was_truncated = false; }
size_t GetSize() const {
return m_size;
......@@ -109,10 +109,14 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
DollopEntry_t *FallthroughDollopEntry(DollopEntry_t *) const;
void WasTruncated(bool truncated) { m_was_truncated = truncated; }
bool WasTruncated(void) const { return m_was_truncated; }
private:
size_t CalculateWorstCaseSize();
size_t m_size;
Dollop_t *m_fallthrough_dollop;
bool m_was_truncated;
};
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment