This is necessary in order to make removal while using reverse iterators work.
(See http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/084122.html)
Updates to other eraseFromParent's to come in later patches.
Paths
| Differential D8783
Return iterator from Instruction::eraseFromParent. ClosedPublic Authored by • dberlin on Apr 1 2015, 11:01 AM.
Details Summary This is necessary in order to make removal while using reverse iterators work. (See http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/084122.html) Updates to other eraseFromParent's to come in later patches.
Diff Detail
Event Timeline• dberlin updated this object. Comment Actions Mark the function i moved to be inline (Darwin apparently does not care for some reason). Also happy to move it into a .cpp file if we like, just trying to replicate the same single-module inlining availability This revision is now accepted and ready to land.Apr 1 2015, 4:28 PM Closed by commit rL233869: Return iterator from Instruction::eraseFromParent. (authored by dannyb). · Explain WhyApr 1 2015, 5:06 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 23103 llvm/trunk/include/llvm/IR/BasicBlock.h
llvm/trunk/include/llvm/IR/Instruction.h
llvm/trunk/lib/IR/Instruction.cpp
|