diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-13 04:32:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-13 04:32:07 +0000 |
commit | 4053983963cb94a6129da47bca8cce637c8b7bff (patch) | |
tree | 1e4f9aeaef28488d0eef1dd9a4fdf2d60a439654 /lib/Basic/TargetInfo.cpp | |
parent | c9f4af634b3aadbabdd1d4b9b81d67e30bb8ce96 (diff) |
fix PR4938 by recognizing % as a modifier on outputs,
previously we only recognized it on inputs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index 35d9ccd401..9cd12493e7 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -188,6 +188,9 @@ bool TargetInfo::validateOutputConstraint(ConstraintInfo &Info) const { } case '&': // early clobber. break; + case '%': // commutative. + // FIXME: Check that there is a another register after this one. + break; case 'r': // general register. Info.setAllowsRegister(); break; |