From 79aee9f9daf5d7d858be7a8e3134a155867b09cd Mon Sep 17 00:00:00 2001 From: Kuba Ober Date: Sun, 29 Dec 2019 17:01:53 -0500 Subject: [PATCH] Add include guard to V3InstrCount.h. This is needed for cmake unity build to work. --- src/V3InstrCount.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/V3InstrCount.h b/src/V3InstrCount.h index 6d5ba0c5a..ecc9f73ca 100644 --- a/src/V3InstrCount.h +++ b/src/V3InstrCount.h @@ -19,6 +19,9 @@ // //************************************************************************* +#ifndef _V3INSTRCOUNT_H_ +#define _V3INSTRCOUNT_H_ 1 + #include "config_build.h" #include "verilatedos.h" @@ -41,3 +44,5 @@ public: // Optional osp is stream to dump critical path to. static uint32_t count(AstNode* nodep, bool assertNoDups, std::ostream* osp = NULL); }; + +#endif // guard