[LCG] Minor cleanup to the LCG walk over a function, NFC.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 9 Dec 2016 00:46:44 +0000 (00:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 9 Dec 2016 00:46:44 +0000 (00:46 +0000)
commit86f0bdf83205fb49cf46acf98cc2736ef85bf984
treee55a93c0b187fc4f8d109a538863e7d66e208e9e
parent7a1e5bbe4e63c41dffa6d19668ebe72cda3f9803
[LCG] Minor cleanup to the LCG walk over a function, NFC.

This just hoists the check for declarations up a layer which allows
various sets used in the walk to be smaller. Also moves the relevant
comments to match, and catches a few other cleanups in this code.

llvm-svn: 289163
llvm/include/llvm/Analysis/LazyCallGraph.h
llvm/lib/Analysis/LazyCallGraph.cpp