[llvm-commits] [dragonegg] r115783 - /dragonegg/trunk/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Wed Oct 6 05:36:33 PDT 2010


Author: baldrick
Date: Wed Oct  6 07:36:32 2010
New Revision: 115783

URL: http://llvm.org/viewvc/llvm-project?rev=115783&view=rev
Log:
Port commit 108558 (johannes) from llvm-gcc:
"p" constraint also accepts constants.  PR 5533.

Modified:
    dragonegg/trunk/llvm-convert.cpp

Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=115783&r1=115782&r2=115783&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Wed Oct  6 07:36:32 2010
@@ -3125,9 +3125,9 @@
 
     // Translate 'p' to 'm'.  This is supposed to check for a valid memory
     // address, but for inline assembly there is no way to know the mode of
-    // the data being addressed.
+    // the data being addressed.  Peculiarly, it also accepts a constant.
     if (ConstraintChar == 'p')
-      ConstraintChar = 'm';
+      Result += "im";
 
     // See if this is a regclass constraint.
     unsigned RegClass;





More information about the llvm-commits mailing list