mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user