mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Use new interfaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -381,15 +381,11 @@ bool BugDriver::debugCodeGenerator() {
|
|||||||
BB->getInstList().push_back(call);
|
BB->getInstList().push_back(call);
|
||||||
|
|
||||||
// if the type of old function wasn't void, return value of call
|
// if the type of old function wasn't void, return value of call
|
||||||
ReturnInst *ret;
|
|
||||||
if (oldMain->getReturnType() != Type::VoidTy) {
|
if (oldMain->getReturnType() != Type::VoidTy) {
|
||||||
ret = new ReturnInst(call);
|
new ReturnInst(call, BB);
|
||||||
} else {
|
} else {
|
||||||
ret = new ReturnInst();
|
new ReturnInst(0, BB);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the return instruction to the BasicBlock
|
|
||||||
BB->getInstList().push_back(ret);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DisambiguateGlobalSymbols(Program);
|
DisambiguateGlobalSymbols(Program);
|
||||||
|
Reference in New Issue
Block a user