forked from github/verilator
Fix leak check compile and run, bug521.
This commit is contained in:
parent
d34fccec22
commit
e12bf35996
@ -308,7 +308,7 @@ void FileLine::deleteAllRemaining() {
|
||||
// Eventually the list will be empty and terminate the loop.
|
||||
}
|
||||
fileLineLeakChecks.clear();
|
||||
FileLineSingleton::clear();
|
||||
singleton().clear();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -61,9 +61,10 @@ public:
|
||||
m_needHInlines = false;
|
||||
m_needHeavy = false;
|
||||
m_dpi = false;
|
||||
m_rootp = makeNetlist();
|
||||
m_rootp = NULL; // created by makeInitNetlist() so static constructors run first
|
||||
}
|
||||
AstNetlist* makeNetlist();
|
||||
void boot() { UASSERT(!m_rootp,"call once"); m_rootp = makeNetlist(); }
|
||||
void clear();
|
||||
// ACCESSORS (general)
|
||||
AstNetlist* rootp() const { return m_rootp; }
|
||||
|
@ -616,6 +616,9 @@ int main(int argc, char** argv, char** env) {
|
||||
time(&randseed);
|
||||
srand( (int) randseed);
|
||||
|
||||
// Post-constructor initialization of netlists
|
||||
v3Global.boot();
|
||||
|
||||
// Preprocessor
|
||||
// Before command parsing so we can handle -Ds on command line.
|
||||
V3PreShell::boot(env);
|
||||
|
Loading…
Reference in New Issue
Block a user