[llvm] r241124 - [IRBuilder] Delete unused constructor and SetInsertPoint overload.
Alexey Samsonov
vonosmas at gmail.com
Tue Jun 30 15:38:22 PDT 2015
Author: samsonov
Date: Tue Jun 30 17:38:22 2015
New Revision: 241124
URL: http://llvm.org/viewvc/llvm-project?rev=241124&view=rev
Log:
[IRBuilder] Delete unused constructor and SetInsertPoint overload.
Modified:
llvm/trunk/include/llvm/IR/IRBuilder.h
Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=241124&r1=241123&r2=241124&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Tue Jun 30 17:38:22 2015
@@ -105,19 +105,6 @@ public:
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.
void SetCurrentDebugLocation(DebugLoc L) { CurDbgLocation = std::move(L); }
@@ -554,11 +541,6 @@ public:
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,
MDNode *FPMathTag = nullptr)
: IRBuilderBase(TheBB->getContext(), FPMathTag), Folder(F) {
More information about the llvm-commits
mailing list