getConstraintType should be virtual.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26041 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-02-07 20:13:44 +00:00
parent d89d888cc5
commit eac707f702

View 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);
//===--------------------------------------------------------------------===//