From 515686b13040d4a27b0537488247f1426ae4c4af Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Feb 2008 06:18:42 +0000 Subject: [PATCH] dump the module *before* we delete it, not after. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46741 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/LangImpl4.html | 8 ++++---- docs/tutorial/LangImpl5.html | 8 ++++---- docs/tutorial/LangImpl6.html | 10 +++++----- docs/tutorial/LangImpl7.html | 11 ++++++----- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html index 5a41f51fd6c..db76cb35061 100644 --- a/docs/tutorial/LangImpl4.html +++ b/docs/tutorial/LangImpl4.html @@ -1109,11 +1109,11 @@ int main() { 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; } diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html index 8672cdd00f3..44b0ccfe6b4 100644 --- a/docs/tutorial/LangImpl5.html +++ b/docs/tutorial/LangImpl5.html @@ -1735,11 +1735,11 @@ int main() { 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; } diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html index 013da2e753f..022d6faee7f 100644 --- a/docs/tutorial/LangImpl6.html +++ b/docs/tutorial/LangImpl6.html @@ -1774,11 +1774,11 @@ int main() { 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; } diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html index 740e956d0f6..3cd02a75026 100644 --- a/docs/tutorial/LangImpl7.html +++ b/docs/tutorial/LangImpl7.html @@ -2129,11 +2129,12 @@ int main() { 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; }