}
/// Return the list of <CalleeGUID, ProfileCount> pairs.
- std::vector<EdgeTy> &edges() { return CallGraphEdgeList; }
- const std::vector<EdgeTy> &edges() const { return CallGraphEdgeList; }
+ std::vector<EdgeTy> &calls() { return CallGraphEdgeList; }
+ const std::vector<EdgeTy> &calls() const { return CallGraphEdgeList; }
};
/// \brief Global variable summary information to aid decisions and
NameVals.push_back(RI);
bool HasProfileData = F.getEntryCount().hasValue();
- for (auto &ECI : FS->edges()) {
+ for (auto &ECI : FS->calls()) {
NameVals.push_back(ECI.first);
assert(ECI.second.CallsiteCount > 0 && "Expected at least one callsite");
NameVals.push_back(ECI.second.CallsiteCount);
}
bool HasProfileData = false;
- for (auto &EI : FS->edges()) {
+ for (auto &EI : FS->calls()) {
HasProfileData |= EI.second.ProfileCount != 0;
if (HasProfileData)
break;
}
- for (auto &EI : FS->edges()) {
+ for (auto &EI : FS->calls()) {
const auto &VMI = GUIDToValueIdMap.find(EI.first);
// If this GUID doesn't have an entry, it doesn't have a function
// summary and we don't need to record any calls to it.