PR2985 / <rdar://problem/6584986>
[oota-llvm.git] / include / llvm / Target / TargetRegisterInfo.h
index dd3e056f303a801b197554402afe11047b64c84e..bc1b731f99e6ec05b62c73252e8576b0f6ef4090 100644 (file)
@@ -273,8 +273,8 @@ public:
   /// getPhysicalRegisterRegClass - Returns the Register Class of a physical
   /// register of the given type. If type is MVT::Other, then just return any
   /// register class the register belongs to.
-  const TargetRegisterClass *getPhysicalRegisterRegClass(unsigned Reg,
-                                          MVT VT = MVT::Other) const;
+  virtual const TargetRegisterClass *
+    getPhysicalRegisterRegClass(unsigned Reg, MVT VT = MVT::Other) const;
 
   /// getAllocatableSet - Returns a bitset indexed by register number
   /// indicating if a register is allocatable or not. If a register class is