Hack for dealing with commas until we support multiple alternative constraints, per pr7338.

llvm-svn: 108028
This commit is contained in:
John Thompson 2010-07-09 22:49:34 +00:00
parent 2066e3ed47
commit c438947242
1 changed files with 4 additions and 0 deletions

View File

@ -284,6 +284,8 @@ bool TargetInfo::validateOutputConstraint(ConstraintInfo &Info) const {
Info.setAllowsRegister();
Info.setAllowsMemory();
break;
case ',': // FIXME: Until we handle multiple alternative constraints,
return true; // ignore everything after the first comma.
}
Name++;
@ -377,6 +379,8 @@ bool TargetInfo::validateInputConstraint(ConstraintInfo *OutputConstraints,
Info.setAllowsRegister();
Info.setAllowsMemory();
break;
case ',': // FIXME: Until we handle multiple alternative constraints,
return true; // ignore everything after the first comma.
}
Name++;