This essentially reverts changes from r361400.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
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 ↗ | (On Diff #218587) | 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. |