From 3857016d38565fce5a3e1fc61cdd330fc0c16a95 Mon Sep 17 00:00:00 2001 From: whh8b <whh8b@git.zephyr-software.com> Date: Fri, 18 Dec 2015 20:34:50 +0000 Subject: [PATCH] Track dollop truncation. --- include/dollop.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/dollop.h b/include/dollop.h index 287ef4d..00a4dcb 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 -- GitLab