]> granicus.if.org Git - clang/commitdiff
On ARM make sure that we continue translating 'p' to 'r' for the
authorEric Christopher <echristo@apple.com>
Fri, 17 Jun 2011 00:40:18 +0000 (00:40 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 17 Jun 2011 00:40:18 +0000 (00:40 +0000)
constraints.

rdar://9618597

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133222 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 21be92976ad5d9794298fde1d6fcead994c85a90..b6715bbea1133a8d33e2cdaff582a32d9500ec55 100644 (file)
@@ -2069,6 +2069,9 @@ public:
       R = std::string("^") + std::string(Constraint, 2);
       Constraint++;
       break;
+    case 'p': // 'p' should be translated to 'r' by default.
+      R = std::string("r");
+      break;
     default:
       return std::string(1, *Constraint);
     }