OSDN Git Service

[MachineOutliner][NFC] Sink some candidate logic into OutlinedFunction
authorJessica Paquette <jpaquette@apple.com>
Tue, 24 Jul 2018 17:36:13 +0000 (17:36 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 24 Jul 2018 17:36:13 +0000 (17:36 +0000)
commitf381561a76c5bdff7e16110621048a307720bbbb
tree3ecc4a61f0aa515d7f698d11c3a31122927ea9b8
parentcef24f0d3b76062201a95d07062824bcfcf8856f
[MachineOutliner][NFC] Sink some candidate logic into OutlinedFunction

Just some simple gardening to improve clarity.

Before, we had something along the lines of

1) Create a std::vector of Candidates
2) Create an OutlinedFunction
3) Create a std::vector of pointers to Candidates
4) Copy those over to the OutlinedFunction and the Candidate list

Now, OutlinedFunctions create the Candidate pointers. They're still copied
over to the main list of Candidates, but it makes it a bit clearer what's
going on.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337838 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineOutliner.h
lib/CodeGen/MachineOutliner.cpp