[llvm-commits] [llvm] r46741 - in /llvm/trunk/docs/tutorial: LangImpl4.html LangImpl5.html LangImpl6.html LangImpl7.html

Chris Lattner sabre at nondot.org
Mon Feb 4 22:18:42 PST 2008


Author: lattner
Date: Tue Feb  5 00:18:42 2008
New Revision: 46741

URL: http://llvm.org/viewvc/llvm-project?rev=46741&view=rev
Log:
dump the module *before* we delete it, not after.

Modified:
    llvm/trunk/docs/tutorial/LangImpl4.html
    llvm/trunk/docs/tutorial/LangImpl5.html
    llvm/trunk/docs/tutorial/LangImpl6.html
    llvm/trunk/docs/tutorial/LangImpl7.html

Modified: llvm/trunk/docs/tutorial/LangImpl4.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl4.html?rev=46741&r1=46740&r2=46741&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl4.html (original)
+++ llvm/trunk/docs/tutorial/LangImpl4.html Tue Feb  5 00:18:42 2008
@@ -1109,11 +1109,11 @@
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
+    
+    // Print out all of the generated code.
+    TheModule->dump();
+  }  // Free module provider (and thus the module) and pass manager.
                                    
-  // Print out all of the generated code.
-  TheModule->dump();
   return 0;
 }
 </pre>

Modified: llvm/trunk/docs/tutorial/LangImpl5.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl5.html?rev=46741&r1=46740&r2=46741&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl5.html (original)
+++ llvm/trunk/docs/tutorial/LangImpl5.html Tue Feb  5 00:18:42 2008
@@ -1735,11 +1735,11 @@
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
+
+    // Print out all of the generated code.
+    TheModule->dump();
+  }  // Free module provider (and thus the module) and pass manager.
                                    
-  // Print out all of the generated code.
-  TheModule->dump();
   return 0;
 }
 </pre>

Modified: llvm/trunk/docs/tutorial/LangImpl6.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl6.html?rev=46741&r1=46740&r2=46741&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl6.html (original)
+++ llvm/trunk/docs/tutorial/LangImpl6.html Tue Feb  5 00:18:42 2008
@@ -1774,11 +1774,11 @@
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
-                                   
-  // Print out all of the generated code.
-  TheModule->dump();
+    
+    // Print out all of the generated code.
+    TheModule->dump();
+  }  // Free module provider (and thus the module) and pass manager.
+  
   return 0;
 }
 </pre>

Modified: llvm/trunk/docs/tutorial/LangImpl7.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl7.html?rev=46741&r1=46740&r2=46741&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl7.html (original)
+++ llvm/trunk/docs/tutorial/LangImpl7.html Tue Feb  5 00:18:42 2008
@@ -2129,11 +2129,12 @@
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
-                                   
-  // Print out all of the generated code.
-  TheModule->dump();
+    
+    // Print out all of the generated code.
+    TheModule->dump();
+    
+  }  // Free module provider (and thus the module) and pass manager.
+  
   return 0;
 }
 </pre>





More information about the llvm-commits mailing list