| 65 | } |
| 66 | |
| 67 | int InstructionCounter::GetCount(const char* name) { |
| 68 | CounterMap::const_iterator counter = counters_.find(name); |
| 69 | DCHECK(counter != counters_.end()); |
| 70 | return counter->second; |
| 71 | } |
| 72 | |
| 73 | void InstructionCounter::visit(const llvm::Instruction& I) { |
| 74 | IncrementCount(TOTAL_INSTS); |