[llvm-mca] Minor code cleanup. NFC

llvm-svn: 329796
diff --git a/llvm/tools/llvm-mca/DispatchStatistics.cpp b/llvm/tools/llvm-mca/DispatchStatistics.cpp
index f1281c3..da85245 100644
--- a/llvm/tools/llvm-mca/DispatchStatistics.cpp
+++ b/llvm/tools/llvm-mca/DispatchStatistics.cpp
@@ -20,6 +20,11 @@
 
 namespace mca {
 
+void DispatchStatistics::onStallEvent(const HWStallEvent &Event) {
+  if (Event.Type < HWStallEvent::LastGenericEvent)
+    HWStalls[Event.Type]++;
+}
+
 void DispatchStatistics::onInstructionEvent(const HWInstructionEvent &Event) {
   if (Event.Type == HWInstructionEvent::Dispatched)
     ++NumDispatched;