mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Update .cvs file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a2780e11ef
commit
ae5115dd44
@ -1723,11 +1723,12 @@ Module* UpgradeAssembly(const std::string &infile, std::istream& in,
|
|||||||
|
|
||||||
while (!F->use_empty()) {
|
while (!F->use_empty()) {
|
||||||
CallInst* CI = cast<CallInst>(F->use_back());
|
CallInst* CI = cast<CallInst>(F->use_back());
|
||||||
SmallVector<Value *, 2> Args;
|
Value *Args[2] = {
|
||||||
Args.push_back(new AllocaInst(ArgTy, 0, "vacopy.fix.1", CI));
|
new AllocaInst(ArgTy, 0, "vacopy.fix.1", CI),
|
||||||
Args.push_back(new AllocaInst(ArgTy, 0, "vacopy.fix.2", CI));
|
new AllocaInst(ArgTy, 0, "vacopy.fix.2", CI)
|
||||||
|
};
|
||||||
new StoreInst(CI->getOperand(1), Args[1], CI);
|
new StoreInst(CI->getOperand(1), Args[1], CI);
|
||||||
new CallInst(NF, Args.begin(), Args.end(), "", CI);
|
new CallInst(NF, Args, Args + 2, "", CI);
|
||||||
Value* foo = new LoadInst(Args[0], "vacopy.fix.3", CI);
|
Value* foo = new LoadInst(Args[0], "vacopy.fix.3", CI);
|
||||||
CI->replaceAllUsesWith(foo);
|
CI->replaceAllUsesWith(foo);
|
||||||
CI->getParent()->getInstList().erase(CI);
|
CI->getParent()->getInstList().erase(CI);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user