summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-19 00:15:33 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-19 00:15:33 +0000
commit08226ea2eef6386fd1461127b8a75edc95ddb149 (patch)
tree78c9c28cb4033ec9fe4409fa50e057e9b3d0993f /llvm/docs/tutorial
parentdc73a703db6dc190cd590d3d74c9b46e5ff00d81 (diff)
downloadbcm5719-llvm-08226ea2eef6386fd1461127b8a75edc95ddb149.tar.gz
bcm5719-llvm-08226ea2eef6386fd1461127b8a75edc95ddb149.zip
Delete the Module object.
llvm-svn: 51233
Diffstat (limited to 'llvm/docs/tutorial')
-rw-r--r--llvm/docs/tutorial/JITTutorial1.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/JITTutorial1.html b/llvm/docs/tutorial/JITTutorial1.html
index 5228982ead8..87b7ed6da8d 100644
--- a/llvm/docs/tutorial/JITTutorial1.html
+++ b/llvm/docs/tutorial/JITTutorial1.html
@@ -81,6 +81,7 @@ int main(int argc, char**argv) {
PM.add(new PrintModulePass(&amp;llvm::cout));
PM.run(*Mod);
+ delete Mod;
return 0;
}
</pre>
@@ -161,7 +162,7 @@ function will interoperate properly with C code, which is a good thing.</p>
<div class="doc_code">
<pre>
Value* tmp = builder.CreateBinOp(Instruction::Mul,
- x, y, "tmp");
+ x, y, "tmp");
Value* tmp2 = builder.CreateBinOp(Instruction::Add,
tmp, z, "tmp2");
OpenPOWER on IntegriCloud