CodeGen: Remove implicit conversions from Analysis and BranchFolding
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 9 Oct 2015 18:23:49 +0000 (18:23 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 9 Oct 2015 18:23:49 +0000 (18:23 +0000)
commitaa464da594c387256b51beb438d5e830784f26a9
treecf01b6e2d978f13a93634943622feea26eef2cd7
parent983d814835709d574d0f29d875cb11a32c2f65f8
CodeGen: Remove implicit conversions from Analysis and BranchFolding

Remove a few more implicit ilist iterator conversions, this time from
Analysis.cpp and BranchFolding.cpp.

I added a few overloads for `remove()` and `erase()`, which quite
naturally take pointers as well as iterators as parameters.  This will
reduce the churn at least in the short term, but I don't really have a
problem with these existing for longer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249867 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ilist.h
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/Analysis.cpp
lib/CodeGen/BranchFolding.cpp