From 6b6e8dc83ec0c1f207b609c195e21939b6b430fe Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 6 Dec 2017 23:26:27 -0500 Subject: [PATCH] Use VL_UNCOPYABLE in emitted code. No functional change intended. --- src/V3EmitC.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index e60018087..4b66679cd 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -1997,8 +1997,7 @@ void EmitCImp::emitInt(AstNodeModule* modp) { ofp()->resetPrivate(); // We don't need a private copy constructor, as VerilatedModule has one for us. ofp()->putsPrivate(true); - puts(modClassName(modp)+"& operator= (const "+modClassName(modp)+"&); ///< Copying not allowed\n"); - puts(modClassName(modp)+"(const "+modClassName(modp)+"&); ///< Copying not allowed\n"); + puts("VL_UNCOPYABLE("+modClassName(modp)+"); ///< Copying not allowed\n"); ofp()->putsPrivate(false); // public: if (optSystemC() && modp->isTop()) { @@ -2011,7 +2010,7 @@ void EmitCImp::emitInt(AstNodeModule* modp) { if (modp->isTop()) { puts("/// Construct the model; called by application code\n"); puts("/// The special name "" may be used to make a wrapper with a\n"); - puts("/// single model invisible WRT DPI scope names.\n"); + puts("/// single model invisible with respect to DPI scope names.\n"); } puts(modClassName(modp)+"(const char* name=\"TOP\");\n"); if (modp->isTop()) puts("/// Destroy the model; called (often implicitly) by application code\n");