Rename SILBuilder::emitDestroyAddr => SILBuilder::emitDestroyAddrAndFold.

Now it matches SILBuilder::emit{StrongRelease,ReleaseValue}AndFold which perform
the same operation but on object types.

Swift SVN r27806
This commit is contained in:
Michael Gottesman
2015-04-27 17:29:50 +00:00
parent 3549d46d3b
commit 9006fca42b
9 changed files with 14 additions and 13 deletions

View File

@@ -92,7 +92,8 @@ SILBasicBlock *SILBuilder::splitBlockForFallthrough() {
/// emitDestroyAddr - Try to fold a destroy_addr operation into the previous
/// instructions, or generate an explicit one if that fails. If this inserts a
/// new instruction, it returns it, otherwise it returns null.
DestroyAddrInst *SILBuilder::emitDestroyAddr(SILLocation Loc, SILValue Operand){
DestroyAddrInst *SILBuilder::emitDestroyAddrAndFold(SILLocation Loc,
SILValue Operand) {
// Check to see if the instruction immediately before the insertion point is a
// copy_addr from the specified operand. If so, we can fold this into the
// copy_addr as a take.