mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 06:53:38 +02:00
Internals: Remove dead code, fix or sign off coverage
Remove/fix/signoff uncontroversial code coverage holes. Also added a couple TODOs that should be investigated at some point
This commit is contained in:
+2
-2
@@ -344,10 +344,10 @@ class TraceDeclVisitor final : public VNVisitor {
|
||||
void checkCalls(const AstCFunc* funcp) {
|
||||
if (!v3Global.opt.debugCheck()) return;
|
||||
checkCallsRecurse(funcp);
|
||||
if (!m_declUncalledps.empty()) {
|
||||
if (!m_declUncalledps.empty()) { // LCOV_EXCL_START
|
||||
for (auto tracep : m_declUncalledps) UINFO(0, "-nodep " << tracep);
|
||||
(*(m_declUncalledps.begin()))->v3fatalSrc("Created TraceDecl which is never called");
|
||||
}
|
||||
} // LCOV_EXCL_STOP
|
||||
}
|
||||
void checkCallsRecurse(const AstCFunc* funcp) {
|
||||
funcp->foreach([this](const AstNode* nodep) {
|
||||
|
||||
Reference in New Issue
Block a user