diff --git a/include/dollop.h b/include/dollop.h index 287ef4de206261edca75e84ce268459f7abed596..00a4dcbef07bd4ef6926e8b118ec04e878de3b61 100644 --- a/include/dollop.h +++ b/include/dollop.h @@ -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