summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptToken.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2017-09-28 23:39:36 +0000
committerJessica Paquette <jpaquette@apple.com>2017-09-28 23:39:36 +0000
commit919991690c32345a9e42fcf2aebe17c36f59a492 (patch)
tree301741d4466653bbe412372fa1d5ed3250b19af4 /llvm/tools/llvm-rc/ResourceScriptToken.cpp
parent6255c7b6755acc5d4f38dea359fcbeba13fa776f (diff)
downloadbcm5719-llvm-919991690c32345a9e42fcf2aebe17c36f59a492.tar.gz
bcm5719-llvm-919991690c32345a9e42fcf2aebe17c36f59a492.zip
[MachineOutliner][NFC] Simplify logic in pruneCandidates
This commit yanks out the repeated sections of code in pruneCandidates into two lambdas: ShouldSkipCandidate and Prune. This simplifies the logic in pruneCandidates significantly, and reduces the chance of introducing bugs by folding all of the shared logic into one place. llvm-svn: 314475
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptToken.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud