mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Delete the Module object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51233 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8968d99c6
commit
d63729fee3
@ -81,6 +81,7 @@ int main(int argc, char**argv) {
|
|||||||
PM.add(new PrintModulePass(&llvm::cout));
|
PM.add(new PrintModulePass(&llvm::cout));
|
||||||
PM.run(*Mod);
|
PM.run(*Mod);
|
||||||
|
|
||||||
|
delete Mod;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
@ -161,7 +162,7 @@ function will interoperate properly with C code, which is a good thing.</p>
|
|||||||
<div class="doc_code">
|
<div class="doc_code">
|
||||||
<pre>
|
<pre>
|
||||||
Value* tmp = builder.CreateBinOp(Instruction::Mul,
|
Value* tmp = builder.CreateBinOp(Instruction::Mul,
|
||||||
x, y, "tmp");
|
x, y, "tmp");
|
||||||
Value* tmp2 = builder.CreateBinOp(Instruction::Add,
|
Value* tmp2 = builder.CreateBinOp(Instruction::Add,
|
||||||
tmp, z, "tmp2");
|
tmp, z, "tmp2");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user