Skip to content

Commit

Permalink
[CodeGen] Modernize InstrProfStats (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent 5ab7c28 commit f6f6f19
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions clang/lib/CodeGen/CodeGenModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,14 @@ struct ObjCEntrypoints {

/// This class records statistics on instrumentation based profiling.
class InstrProfStats {
uint32_t VisitedInMainFile;
uint32_t MissingInMainFile;
uint32_t Visited;
uint32_t Missing;
uint32_t Mismatched;
uint32_t VisitedInMainFile = 0;
uint32_t MissingInMainFile = 0;
uint32_t Visited = 0;
uint32_t Missing = 0;
uint32_t Mismatched = 0;

public:
InstrProfStats()
: VisitedInMainFile(0), MissingInMainFile(0), Visited(0), Missing(0),
Mismatched(0) {}
InstrProfStats() = default;
/// Record that we've visited a function and whether or not that function was
/// in the main source file.
void addVisited(bool MainFile) {
Expand Down

0 comments on commit f6f6f19

Please sign in to comment.