diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2010-07-09 22:49:34 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2010-07-09 22:49:34 +0000 |
commit | bb0cf4a29d75a660bbdd20761b9830a38a910419 (patch) | |
tree | c7c99803055c57684ad3ffbc6d0b40821da23a17 /lib/Basic/TargetInfo.cpp | |
parent | 833f42e32754515bc108b9b1ccccc6e373915a6c (diff) |
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
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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++; |