From a9cd2998e5193bd81a539af7630141053e5897a9 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sat, 23 Apr 2022 14:06:26 +0100 Subject: [PATCH] Don't mangle run-time library method names. --- Changes | 1 + src/V3EmitCFunc.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 8a8a34272..016f91f50 100644 --- a/Changes +++ b/Changes @@ -22,6 +22,7 @@ Verilator 4.221 devel * Fix filenames with dots overwriting debug .vpp files (#3373). * Fix including VK_USER_OBJS in make library (#3370). [Julien Margetts] * Fix crash in recursive module inlining (#3393). [david-sawatzke] +* Fix --protect-ids mangling names of library methods. [Geza Lore, Shunyao CAD] Verilator 4.220 2022-03-12 ========================== diff --git a/src/V3EmitCFunc.h b/src/V3EmitCFunc.h index 127bf1032..4bdfb1c57 100644 --- a/src/V3EmitCFunc.h +++ b/src/V3EmitCFunc.h @@ -406,7 +406,7 @@ public: virtual void visit(AstCMethodHard* nodep) override { iterate(nodep->fromp()); puts("."); - puts(nodep->nameProtect()); + puts(nodep->name()); puts("("); bool comma = false; for (AstNode* subnodep = nodep->pinsp(); subnodep; subnodep = subnodep->nextp()) {