[gardening] Rename ProjectionTree::getLeafTypes() => getLiveLeafTypes().

This is a more appropriate name. Otherwise, a reader could think that it returns
/all/ leaf types including dead leaf types.
This commit is contained in:
Michael Gottesman
2018-05-21 11:47:09 -07:00
parent 728e9b2bb6
commit e8af11d61b
4 changed files with 8 additions and 11 deletions

View File

@@ -1244,7 +1244,7 @@ computeUsesAndLiveness(SILValue Base) {
#ifndef NDEBUG
DEBUG(llvm::dbgs() << "Final Leafs: \n");
llvm::SmallVector<SILType, 8> LeafTypes;
getLeafTypes(LeafTypes);
getLiveLeafTypes(LeafTypes);
for (SILType Leafs : LeafTypes) {
DEBUG(llvm::dbgs() << " " << Leafs << "\n");
}