Fix leak check compile and run, bug521.

This commit is contained in:
Wilson Snyder 2012-05-29 22:59:17 -04:00
parent d34fccec22
commit e12bf35996
3 changed files with 6 additions and 2 deletions

View File

@ -308,7 +308,7 @@ void FileLine::deleteAllRemaining() {
// Eventually the list will be empty and terminate the loop.
}
fileLineLeakChecks.clear();
FileLineSingleton::clear();
singleton().clear();
#endif
}

View File

@ -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; }

View File

@ -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);