aboutsummaryrefslogtreecommitdiffstats
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
commit3b75aa32ab56e980f7141fb30f3bc6b94d1cd6ec (patch)
treec0e66bd136f21f11c781eab7dda23988cd8e3912
parentaf97d02f09ad1603360217266a55db5a155aefae (diff)
downloadexternal_llvm-3b75aa32ab56e980f7141fb30f3bc6b94d1cd6ec.zip
external_llvm-3b75aa32ab56e980f7141fb30f3bc6b94d1cd6ec.tar.gz
external_llvm-3b75aa32ab56e980f7141fb30f3bc6b94d1cd6ec.tar.bz2
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
-rw-r--r--docs/tutorial/LangImpl4.html8
-rw-r--r--docs/tutorial/LangImpl5.html8
-rw-r--r--docs/tutorial/LangImpl6.html10
-rw-r--r--docs/tutorial/LangImpl7.html11
4 files changed, 19 insertions, 18 deletions
diff --git a/docs/tutorial/LangImpl4.html b/docs/tutorial/LangImpl4.html
index 5a41f51..db76cb3 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-&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>
diff --git a/docs/tutorial/LangImpl5.html b/docs/tutorial/LangImpl5.html
index 8672cdd..44b0ccf 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-&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>
diff --git a/docs/tutorial/LangImpl6.html b/docs/tutorial/LangImpl6.html
index 013da2e..022d6fa 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-&gt;dump();
+ } // Free module provider (and thus the module) and pass manager.
+
return 0;
}
</pre>
diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html
index 740e956..3cd02a7 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-&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>