[llvm-commits] [dragonegg] r142529 - /dragonegg/trunk/src/Convert.cpp
Duncan Sands
baldrick at free.fr
Wed Oct 19 06:25:38 PDT 2011
Author: baldrick
Date: Wed Oct 19 08:25:38 2011
New Revision: 142529
URL: http://llvm.org/viewvc/llvm-project?rev=142529&view=rev
Log:
Port commits 132591 and 132595 (echristo) from llvm-gcc:
Prepend a parser helping character on multichar constraints.
Part of rdar://9037836 and rdar://9119939
"mr" is a valid constraint for our purposes here, not one constraint.
Use CONSTRAINT_LEN to get the real length of the constraint.
Part of rdar://9037836 and rdar://9119939
Modified:
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=142529&r1=142528&r2=142529&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Wed Oct 19 08:25:38 2011
@@ -3217,6 +3217,10 @@
}
}
+ // If this constraint is multiple letters add a parsing helper prefix.
+ if (CONSTRAINT_LEN(*Constraint, Constraint) > 1)
+ Result += "^";
+
while (*Constraint) {
char ConstraintChar = *Constraint++;
More information about the llvm-commits
mailing list