getConstraintType should be virtual.
authorChris Lattner <sabre@nondot.org>
Tue, 7 Feb 2006 20:13:44 +0000 (20:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 7 Feb 2006 20:13:44 +0000 (20:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26041 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index ebf83691e3bd5429658ee2c51b8259844770f74c..d69014d3c7224f6c452257d2fa6f5bba47f75bda 100644 (file)
@@ -451,7 +451,7 @@ public:
   
   /// getConstraintType - Given a constraint letter, return the type of
   /// constraint it is for this target.
-  ConstraintType getConstraintType(char ConstraintLetter) const;
+  virtual ConstraintType getConstraintType(char ConstraintLetter) const;
   
   /// getRegForInlineAsmConstraint - Given a constraint letter or register
   /// name (e.g. "r" or "edx"), return a list of registers that can be used to
@@ -460,6 +460,8 @@ public:
   virtual std::vector<unsigned> 
   getRegForInlineAsmConstraint(const std::string &Constraint) const;
   
+  /// isOperandValidForConstraint - Return true if the specified SDOperand is
+  /// valid for the specified target constraint letter.
   virtual bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
   
   //===--------------------------------------------------------------------===//