mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Fix name of some static and thread variables. No functional change.
This commit is contained in:
+2
-2
@@ -113,8 +113,8 @@ AstNodeStmt* profExecSectionPop(FileLine* flp) {
|
||||
}
|
||||
|
||||
static AstCFunc* splitCheckCreateNewSubFunc(AstCFunc* ofuncp) {
|
||||
static std::map<AstCFunc*, uint32_t> funcNums; // What split number to attach to a function
|
||||
const uint32_t funcNum = funcNums[ofuncp]++;
|
||||
static std::map<AstCFunc*, uint32_t> s_funcNums; // What split number to attach to a function
|
||||
const uint32_t funcNum = s_funcNums[ofuncp]++;
|
||||
const std::string name = ofuncp->name() + "__" + cvtToStr(funcNum);
|
||||
AstCFunc* const subFuncp = new AstCFunc{ofuncp->fileline(), name, ofuncp->scopep()};
|
||||
subFuncp->dontCombine(true);
|
||||
|
||||
Reference in New Issue
Block a user