[DebugInfo] Deduplicate debug info limiting logic
We should be doing the same checks when a type is completed as we do when a complete type is used during emission. Previously, we duplicated the logic, and it got out of sync. This could be observed with dllimported classes. Also reduce a test case for this slightly. Implementing review feedback from David Blaikie on r281057. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281278 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/CGDebugInfo.cpp 10 additions, 21 deletionslib/CodeGen/CGDebugInfo.cpp
- test/CodeGenCXX/debug-info-class-nolimit.cpp 1 addition, 4 deletionstest/CodeGenCXX/debug-info-class-nolimit.cpp
- test/CodeGenCXX/debug-info-dllimport-base-class.cpp 12 additions, 0 deletionstest/CodeGenCXX/debug-info-dllimport-base-class.cpp
Loading
Please register or sign in to comment