Fix PR number.
[oota-llvm.git] / lib / CodeGen / RegAllocSimple.cpp
index 576d2b421c56363fe1a3f708d176ddaf6ae7e067..f49dd4c5cfbfd1ba2e2b57c8eff2f96bce45ad07 100644 (file)
@@ -38,6 +38,10 @@ namespace {
                    createSimpleRegisterAllocator);
 
   class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass {
+  public:
+    static char ID;
+    RegAllocSimple() : MachineFunctionPass((intptr_t)&ID) {}
+  private:
     MachineFunction *MF;
     const TargetMachine *TM;
     const MRegisterInfo *RegInfo;
@@ -90,7 +94,7 @@ namespace {
     void spillVirtReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
                       unsigned VirtReg, unsigned PhysReg);
   };
-
+  char RegAllocSimple::ID = 0;
 }
 
 /// getStackSpaceFor - This allocates space for the specified virtual