Skip to content

Commit 163aeca

Browse files
committed
[CodeGenPrepare] Remove unused TypePromotionTransaction::moveBefore to fix gcc Wunused-function warning. NFC.
1 parent 37332bc commit 163aeca

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,10 +3218,6 @@ class TypePromotionTransaction {
32183218
/// Same as IRBuilder::createZExt.
32193219
Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
32203220

3221-
/// Same as Instruction::moveBefore.
3222-
void moveBefore(Instruction *Inst, Instruction *Before);
3223-
/// @}
3224-
32253221
private:
32263222
/// The ordered list of actions made so far.
32273223
SmallVector<std::unique_ptr<TypePromotionAction>, 16> Actions;
@@ -3281,13 +3277,6 @@ Value *TypePromotionTransaction::createZExt(Instruction *Inst, Value *Opnd,
32813277
return Val;
32823278
}
32833279

3284-
void TypePromotionTransaction::moveBefore(Instruction *Inst,
3285-
Instruction *Before) {
3286-
Actions.push_back(
3287-
std::make_unique<TypePromotionTransaction::InstructionMoveBefore>(
3288-
Inst, Before));
3289-
}
3290-
32913280
TypePromotionTransaction::ConstRestorationPt
32923281
TypePromotionTransaction::getRestorationPoint() const {
32933282
return !Actions.empty() ? Actions.back().get() : nullptr;

0 commit comments

Comments
 (0)