mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Fix some code to make it actually work.
llvm-svn: 43217
This commit is contained in:
parent
8a53fc3a85
commit
2c7fdb6067
@ -90,11 +90,12 @@ Module* makeLLVMModule() {
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>
|
||||
Constant* c->getOrInsertFunction("mul_add",
|
||||
/*ret type*/ IntegerType::get(32),
|
||||
/*args*/ IntegerType::get(32),
|
||||
IntegerType::get(32),
|
||||
IntegerType::get(32));
|
||||
Constant* c = mod->getOrInsertFunction("mul_add",
|
||||
/*ret type*/ IntegerType::get(32),
|
||||
/*args*/ IntegerType::get(32),
|
||||
IntegerType::get(32),
|
||||
IntegerType::get(32),
|
||||
/*varargs terminated with null*/ NULL);
|
||||
|
||||
Function* mul_add = cast<Function>(c);
|
||||
mul_add->setCallingConv(CallingConv::C);
|
||||
@ -140,6 +141,8 @@ Module* makeLLVMModule() {
|
||||
tmp, z, "tmp2");
|
||||
|
||||
builder.CreateRet(tmp2);
|
||||
|
||||
return mod;
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user