dump the module *before* we delete it, not after.
authorChris Lattner <sabre@nondot.org>
Tue, 5 Feb 2008 06:18:42 +0000 (06:18 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 Feb 2008 06:18:42 +0000 (06:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46741 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/LangImpl4.html
docs/tutorial/LangImpl5.html
docs/tutorial/LangImpl6.html
docs/tutorial/LangImpl7.html

index 5a41f51fd6c15bccaf6ab8b0cbebeb5302bd861c..db76cb35061257ed9c4da6eb94e3535405803442 100644 (file)
@@ -1109,11 +1109,11 @@ int main() {
     MainLoop();
     
     TheFPM = 0;
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
+    
+    // Print out all of the generated code.
+    TheModule-&gt;dump();
+  }  // Free module provider (and thus the module) and pass manager.
                                    
                                    
-  // Print out all of the generated code.
-  TheModule-&gt;dump();
   return 0;
 }
 </pre>
   return 0;
 }
 </pre>
index 8672cdd00f3d377e822ce565cfab6371a09aebd6..44b0ccfe6b476e09bb9ecf757915e79b0318e3a4 100644 (file)
@@ -1735,11 +1735,11 @@ int main() {
     MainLoop();
     
     TheFPM = 0;
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
+
+    // Print out all of the generated code.
+    TheModule-&gt;dump();
+  }  // Free module provider (and thus the module) and pass manager.
                                    
                                    
-  // Print out all of the generated code.
-  TheModule-&gt;dump();
   return 0;
 }
 </pre>
   return 0;
 }
 </pre>
index 013da2e753f66c0568d89cbb34b31dd9e898cff3..022d6faee7ff85675a2cd65b914082f7db00e977 100644 (file)
@@ -1774,11 +1774,11 @@ int main() {
     MainLoop();
     
     TheFPM = 0;
     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-&gt;dump();
+  }  // Free module provider (and thus the module) and pass manager.
+  
   return 0;
 }
 </pre>
   return 0;
 }
 </pre>
index 740e956d0f62de726994542066b458c1cec31223..3cd02a750263be35ca5927813b48709f054fecec 100644 (file)
@@ -2129,11 +2129,12 @@ int main() {
     MainLoop();
     
     TheFPM = 0;
     MainLoop();
     
     TheFPM = 0;
-  }  // Free module provider and pass manager.
-                                   
-                                   
-  // Print out all of the generated code.
-  TheModule-&gt;dump();
+    
+    // Print out all of the generated code.
+    TheModule-&gt;dump();
+    
+  }  // Free module provider (and thus the module) and pass manager.
+  
   return 0;
 }
 </pre>
   return 0;
 }
 </pre>