Changeset 9399057 for src/Common
- Timestamp:
- Mar 20, 2019, 5:15:54 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- ca59826
- Parents:
- 90b9e4b (diff), b5cff2b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/Common
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.cc
r90b9e4b r9399057 17 17 18 18 PassVisitorStats pass_visitor_stats; 19 Stats::Counters::SimpleCounter* BaseSyntaxNode::new_nodes = nullptr; -
src/Common/Stats/Counter.h
r90b9e4b r9399057 37 37 class SimpleCounter { 38 38 public: 39 inline void operator++() {} 39 40 inline void operator++(int) {} 40 41 inline void operator+=(size_t) {} … … 84 85 virtual void print(std::ostream & os) override { os << count; } 85 86 87 inline void operator++() { if(!enabled) return; count++; } 86 88 inline void operator++(int) { if(!enabled) return; count++; } 87 89 inline void operator+=(size_t value) { if(!enabled) return; count += value; }
Note:
See TracChangeset
for help on using the changeset viewer.