From: John Thompson Date: Fri, 9 Jul 2010 22:49:34 +0000 (+0000) Subject: Hack for dealing with commas until we support multiple alternative constraints, per... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb0cf4a29d75a660bbdd20761b9830a38a910419;p=clang Hack for dealing with commas until we support multiple alternative constraints, per pr7338. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108028 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index 98249c029b..e4eaf63137 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -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++;