It isn't known how many times we've seen the same variable or member in the global scope (unlike in functions), but there still can be some duplicates among different CUs. So, this patch proposes to count variables in the global scope just as a sum of the number of vars, constant members and artificial entities.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 44617 Build 45993: arc lint + arc unit
Event Timeline
llvm/tools/llvm-dwarfdump/Statistics.cpp | ||
---|---|---|
329–330 | How does this condition ensure that this is a constant member now? |
Refactor checks for constant members a bit.
llvm/tools/llvm-dwarfdump/Statistics.cpp | ||
---|---|---|
329–330 | The function returns on lines 259-262 (of original code) if Die is a member, but not a constant one, so it's not possible to reach this 'if' for a non-constant member. |
How does this condition ensure that this is a constant member now?