mirror of
https://github.com/verilator/verilator.git
synced 2025-05-01 13:06:56 +00:00
Internals: Add missing const. No functional change.
This commit is contained in:
parent
0322e9da7e
commit
de9c92fd14
@ -126,7 +126,7 @@ private:
|
|||||||
|
|
||||||
// STATE
|
// STATE
|
||||||
AstNodeModule* m_modp = nullptr; // Current module
|
AstNodeModule* m_modp = nullptr; // Current module
|
||||||
AstNodeFTask* m_ftaskp = nullptr; // Current function/task
|
const AstNodeFTask* m_ftaskp = nullptr; // Current function/task
|
||||||
size_t m_enumValueTabCount = 0; // Number of tables with enum values created
|
size_t m_enumValueTabCount = 0; // Number of tables with enum values created
|
||||||
int m_randCaseNum = 0; // Randcase number within a module for var naming
|
int m_randCaseNum = 0; // Randcase number within a module for var naming
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ void V3Stats::statsReport() {
|
|||||||
std::ofstream* ofp{V3File::new_ofstream(filename)};
|
std::ofstream* ofp{V3File::new_ofstream(filename)};
|
||||||
if (ofp->fail()) v3fatal("Can't write " << filename);
|
if (ofp->fail()) v3fatal("Can't write " << filename);
|
||||||
|
|
||||||
const StatsReport reporter(ofp);
|
{ StatsReport{ofp}; } // Destruct before cleanup
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
ofp->close();
|
ofp->close();
|
||||||
|
@ -118,7 +118,7 @@ class VariableOrder final {
|
|||||||
V3TSP::StateVec states;
|
V3TSP::StateVec states;
|
||||||
for (const auto& pair : m2v) {
|
for (const auto& pair : m2v) {
|
||||||
if (pair.first.empty()) continue;
|
if (pair.first.empty()) continue;
|
||||||
states.push_back(new VarTspSorter(pair.first));
|
states.push_back(new VarTspSorter{pair.first});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do the TSP sort
|
// Do the TSP sort
|
||||||
|
Loading…
Reference in New Issue
Block a user