This essentially reverts changes from r361400.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 37688 Build 37687: arc lint + arc unit
Event Timeline
Comment Actions
What is the reason for this change? The test case and comment changes don't seem related to the actual code change, which would affect DIGlobalVariables.
clang/lib/CodeGen/CGDebugInfo.cpp | ||
---|---|---|
4441–4462 | Please simplify the logic and make these comments more coherent and understandable. This return is redundant with the later return, for example. Basically, rC361400 removed an otherwise unused call to getOrCreateType. getOrCreateType happens to have the side effect of recording all enum types on the side in DIBuilder::AllEnumTypes, which are eventually referred to by the compile unit. |
Please simplify the logic and make these comments more coherent and understandable. This return is redundant with the later return, for example.
Basically, rC361400 removed an otherwise unused call to getOrCreateType. getOrCreateType happens to have the side effect of recording all enum types on the side in DIBuilder::AllEnumTypes, which are eventually referred to by the compile unit.