[llvm-commits] [llvm-gcc-4.2] r132591 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Eric Christopher
echristo at apple.com
Fri Jun 3 13:54:06 PDT 2011
Author: echristo
Date: Fri Jun 3 15:54:06 2011
New Revision: 132591
URL: http://llvm.org/viewvc/llvm-project?rev=132591&view=rev
Log:
Prepend a parser helping character on multichar constraints.
Part of rdar://9037836 and rdar://9119939
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=132591&r1=132590&r2=132591&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Jun 3 15:54:06 2011
@@ -4550,6 +4550,9 @@
}
}
+ // If this constraint is multiple letters add a parsing helper prefix.
+ if (strlen(Constraint) > 1) Result += "^";
+
while (*Constraint) {
char ConstraintChar = *Constraint++;
More information about the llvm-commits
mailing list