diff options
author | Anders Carlsson <andersca@mac.com> | 2009-01-18 02:12:04 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-01-18 02:12:04 +0000 |
commit | 775841fd76a7aead92c10cec4acb5e8a199f53b1 (patch) | |
tree | f26f52babedb568db1f534bc28bf64a837af956e /lib/Basic/TargetInfo.cpp | |
parent | 1b5285e1ba31975864da356b2ed927e87670e654 (diff) |
Handle the 'X' constraint. Fixes <rdar://problem/6504897>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index eb912d578e..3ec3551ebb 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -178,6 +178,7 @@ bool TargetInfo::validateOutputConstraint(const char *Name, info = (ConstraintInfo)(info|CI_AllowsMemory); break; case 'g': // general register, memory operand or immediate integer. + case 'X': // any operand. info = (ConstraintInfo)(info|CI_AllowsMemory|CI_AllowsRegister); break; } @@ -263,6 +264,7 @@ bool TargetInfo::validateInputConstraint(const char *Name, info = (ConstraintInfo)(info|CI_AllowsMemory); break; case 'g': // general register, memory operand or immediate integer. + case 'X': // any operand. info = (ConstraintInfo)(info|CI_AllowsMemory|CI_AllowsRegister); break; } |