SmallVector<MachineInstr *, 4> Insts; /// Vector of DBG_VALUEs to insert.
};
- typedef struct {
+ struct LocAndProperties {
LocIdx Loc;
DbgValueProperties Properties;
- } LocAndProperties;
+ };
/// Collection of transfers (DBG_VALUEs) to be inserted.
SmallVector<Transfer, 32> Transfers;
return 0;
}
-typedef struct ValueSitesStats {
+namespace {
+struct ValueSitesStats {
ValueSitesStats()
: TotalNumValueSites(0), TotalNumValueSitesWithValueProfile(0),
TotalNumValues(0) {}
uint64_t TotalNumValueSitesWithValueProfile;
uint64_t TotalNumValues;
std::vector<unsigned> ValueSitesHistogram;
-} ValueSitesStats;
+};
+} // namespace
static void traverseAllValueSites(const InstrProfRecord &Func, uint32_t VK,
ValueSitesStats &Stats, raw_fd_ostream &OS,