]> granicus.if.org Git - clang/commitdiff
Hack for dealing with commas until we support multiple alternative constraints, per...
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Fri, 9 Jul 2010 22:49:34 +0000 (22:49 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Fri, 9 Jul 2010 22:49:34 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108028 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/TargetInfo.cpp

index 98249c029bbda4c1169692d89fba125b135f92f8..e4eaf6313780e60d86f6bccd656407eb12919753 100644 (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++;