Add a newline to the end of this file.
[oota-llvm.git] / lib / Analysis / InstCount.cpp
index e075fee9f6a391380bc435eaa3c24d5107b262c7..82b2245a3bb4e590227263394e50375b44079575 100644 (file)
@@ -51,6 +51,9 @@ namespace {
       abort();
     }
   public:
+    static char ID; // Pass identification, replacement for typeid
+    InstCount() : FunctionPass((intptr_t)&ID) {}
+
     virtual bool runOnFunction(Function &F);
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -60,6 +63,7 @@ namespace {
 
   };
 
+  char InstCount::ID = 0;
   RegisterPass<InstCount> X("instcount",
                             "Counts the various types of Instructions");
 }