SIL: fix APIs for (re)moving instructions

Instructions can only be moved and erased, but never _removed_ from a block.
This commit is contained in:
Erik Eckstein
2022-12-02 14:36:42 +01:00
parent a7726f19aa
commit 2ca9a3b9ce
5 changed files with 22 additions and 28 deletions

View File

@@ -148,9 +148,10 @@ public:
void push_back(SILInstruction *I);
void push_front(SILInstruction *I);
void remove(SILInstruction *I);
void erase(SILInstruction *I);
void erase(SILInstruction *I, SILModule &module);
static void moveInstruction(SILInstruction *inst, SILInstruction *beforeInst);
void moveInstructionToFront(SILInstruction *inst);
void eraseAllInstructions(SILModule &module);