Switch the internal "Info" map from an std::map to a DenseMap. This
[oota-llvm.git] / include / llvm / Analysis / IntervalPartition.h
index bd998e81de22380f1092df9b5017d47dd5b86292..1f985e37d6456d5dc299f6ec40dc0efa5a5e19e1 100644 (file)
@@ -45,7 +45,9 @@ class IntervalPartition : public FunctionPass {
   std::vector<Interval*> Intervals;
 
 public:
-  IntervalPartition() : RootInterval(0) {}
+  static char ID; // Pass identification, replacement for typeid
+
+  IntervalPartition() : FunctionPass((intptr_t)&ID), RootInterval(0) {}
 
   // run - Calculate the interval partition for this function
   virtual bool runOnFunction(Function &F);