summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl5.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-05 06:18:42 +0000
committerChris Lattner <sabre@nondot.org>2008-02-05 06:18:42 +0000
commitf4ed277135dbee2a4295c338464f4de7a4498aad (patch)
tree7553e6da4eddea782dc78650fa825165ee32389b /llvm/docs/tutorial/LangImpl5.html
parent0a04690fda2f1683909ca0311984fe309889e5ae (diff)
downloadbcm5719-llvm-f4ed277135dbee2a4295c338464f4de7a4498aad.tar.gz
bcm5719-llvm-f4ed277135dbee2a4295c338464f4de7a4498aad.zip
dump the module *before* we delete it, not after.
llvm-svn: 46741
Diffstat (limited to 'llvm/docs/tutorial/LangImpl5.html')
-rw-r--r--llvm/docs/tutorial/LangImpl5.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/tutorial/LangImpl5.html b/llvm/docs/tutorial/LangImpl5.html
index 8672cdd00f3..44b0ccfe6b4 100644
--- a/llvm/docs/tutorial/LangImpl5.html
+++ b/llvm/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-&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>
OpenPOWER on IntegriCloud