diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-17 16:47:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-17 16:47:46 +0000 |
commit | efec324270c75c7a48a7444a0692701fefabc99c (patch) | |
tree | 41b5912ce69512f42f4d6dc44331f27285c622cb /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 01f5354c1dfcc0d172b341aa8d9aeeb0dccd9065 (diff) | |
download | external_llvm-efec324270c75c7a48a7444a0692701fefabc99c.zip external_llvm-efec324270c75c7a48a7444a0692701fefabc99c.tar.gz external_llvm-efec324270c75c7a48a7444a0692701fefabc99c.tar.bz2 |
Keep track of *which* input constraint matches an output
constraint. Reject asms where an output has multiple
input constraints tied to it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 664e06d..479e138 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1962,9 +1962,9 @@ getRegForInlineAsmConstraint(const std::string &Constraint, //===----------------------------------------------------------------------===// // Constraint Selection. -/// isMatchingConstraint - Return true of this is an input operand that is a -/// matching constraint like "4". -bool TargetLowering::AsmOperandInfo::isMatchingConstraint() const { +/// isMatchingInputConstraint - Return true of this is an input operand that is +/// a matching constraint like "4". +bool TargetLowering::AsmOperandInfo::isMatchingInputConstraint() const { assert(!ConstraintCode.empty() && "No known constraint!"); return isdigit(ConstraintCode[0]); } |