[llvm-commits] [gcc-plugin] r75343 - /gcc-plugin/trunk/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Fri Jul 10 20:59:58 PDT 2009


Author: baldrick
Date: Fri Jul 10 22:59:57 2009
New Revision: 75343

URL: http://llvm.org/viewvc/llvm-project?rev=75343&view=rev
Log:
These are now gimple statements.  Gimple statements
are not the same as the good 'ol statements that
used to be used, so some major hacking is going to
be needed to output them.  Leave that till later
since I don't understand gimple statements yet.

Modified:
    gcc-plugin/trunk/llvm-convert.cpp

Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=75343&r1=75342&r2=75343&view=diff

==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Fri Jul 10 22:59:57 2009
@@ -736,10 +736,11 @@
   edge e;
   edge_iterator ei;
   FOR_EACH_BB (bb) {
-    for (block_stmt_iterator bsi = bsi_start (bb); !bsi_end_p (bsi);
-         bsi_next (&bsi)) {
+    for (gimple_stmt_iterator gsi = gsi_start_bb (bb); !gsi_end_p (gsi);
+         gsi_next (&gsi)) {
+
       MemRef DestLoc;
-      tree stmt = bsi_stmt (bsi);
+      gimple stmt = gsi_stmt (gsi);
 
       // If this stmt returns an aggregate value (e.g. a call whose result is
       // ignored), create a temporary to receive the value.  Note that we don't





More information about the llvm-commits mailing list