[llvm-commits] [llvm] r51233 - /llvm/trunk/docs/tutorial/JITTutorial1.html
Bill Wendling
isanbard at gmail.com
Sun May 18 17:15:33 PDT 2008
Author: void
Date: Sun May 18 19:15:33 2008
New Revision: 51233
URL: http://llvm.org/viewvc/llvm-project?rev=51233&view=rev
Log:
Delete the Module object.
Modified:
llvm/trunk/docs/tutorial/JITTutorial1.html
Modified: llvm/trunk/docs/tutorial/JITTutorial1.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/JITTutorial1.html?rev=51233&r1=51232&r2=51233&view=diff
==============================================================================
--- llvm/trunk/docs/tutorial/JITTutorial1.html (original)
+++ llvm/trunk/docs/tutorial/JITTutorial1.html Sun May 18 19:15:33 2008
@@ -81,6 +81,7 @@
PM.add(new PrintModulePass(&llvm::cout));
PM.run(*Mod);
+ delete Mod;
return 0;
}
</pre>
@@ -161,7 +162,7 @@
<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");
More information about the llvm-commits
mailing list