]> granicus.if.org Git - clang/commit
DebugInfo: Don't prefer declarations over definitions in -flimit-debug-info in C
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 1 Aug 2013 20:57:40 +0000 (20:57 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 1 Aug 2013 20:57:40 +0000 (20:57 +0000)
commitac00b79047318f917c5c49c487d5b8b3196e4d93
treef5ce75753928b31a7d0eb57d1878445e1cde6d7a
parent8058833e12dd9cd38107f6dde3d5a17021ad3a5d
DebugInfo: Don't prefer declarations over definitions in -flimit-debug-info in C

Without an ODR, the -flimit-debug-info debug info size optimization of
emitting declarations for fully defined types when only a declaration is
needed by the TU, is incorrect. Emit the full definition whenever it's
available in non-C++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGen/debug-info-limited.c [new file with mode: 0644]
test/CodeGenCXX/debug-info-limited.cpp