mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-22 03:39:03 +00:00
[IRBuilder] Delete unused constructor and SetInsertPoint overload.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
838b35dbd4
commit
b5778f2e34
@ -105,19 +105,6 @@ public:
|
|||||||
SetCurrentDebugLocation(IP->getDebugLoc());
|
SetCurrentDebugLocation(IP->getDebugLoc());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Find the nearest point that dominates this use, and specify that
|
|
||||||
/// created instructions should be inserted at this point.
|
|
||||||
void SetInsertPoint(Use &U) {
|
|
||||||
Instruction *UseInst = cast<Instruction>(U.getUser());
|
|
||||||
if (PHINode *Phi = dyn_cast<PHINode>(UseInst)) {
|
|
||||||
BasicBlock *PredBB = Phi->getIncomingBlock(U);
|
|
||||||
assert(U != PredBB->getTerminator() && "critical edge not split");
|
|
||||||
SetInsertPoint(PredBB, PredBB->getTerminator());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
SetInsertPoint(UseInst);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// \brief Set location information used by debugging information.
|
/// \brief Set location information used by debugging information.
|
||||||
void SetCurrentDebugLocation(DebugLoc L) { CurDbgLocation = std::move(L); }
|
void SetCurrentDebugLocation(DebugLoc L) { CurDbgLocation = std::move(L); }
|
||||||
|
|
||||||
@ -554,11 +541,6 @@ public:
|
|||||||
SetInsertPoint(IP);
|
SetInsertPoint(IP);
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit IRBuilder(Use &U, MDNode *FPMathTag = nullptr)
|
|
||||||
: IRBuilderBase(U->getContext(), FPMathTag), Folder() {
|
|
||||||
SetInsertPoint(U);
|
|
||||||
}
|
|
||||||
|
|
||||||
IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP, const T& F,
|
IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP, const T& F,
|
||||||
MDNode *FPMathTag = nullptr)
|
MDNode *FPMathTag = nullptr)
|
||||||
: IRBuilderBase(TheBB->getContext(), FPMathTag), Folder(F) {
|
: IRBuilderBase(TheBB->getContext(), FPMathTag), Folder(F) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user