mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
eliminate vector-related ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
10ac377f7c
commit
680f2f016e
@ -89,9 +89,7 @@ int main() {
|
|||||||
Value *Ten = ConstantInt::get(Type::Int32Ty, 10);
|
Value *Ten = ConstantInt::get(Type::Int32Ty, 10);
|
||||||
|
|
||||||
// Pass Ten to the call call:
|
// Pass Ten to the call call:
|
||||||
std::vector<Value*> Params;
|
CallInst *Add1CallRes = new CallInst(Add1F, Ten, "add1", BB);
|
||||||
Params.push_back(Ten);
|
|
||||||
CallInst *Add1CallRes = new CallInst(Add1F, Params, "add1", BB);
|
|
||||||
Add1CallRes->setTailCall(true);
|
Add1CallRes->setTailCall(true);
|
||||||
|
|
||||||
// Create the return instruction and add it to the basic block.
|
// Create the return instruction and add it to the basic block.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user