When in a limited debug information situation if we can find the original
authorEric Christopher <echristo@apple.com>
Fri, 16 Dec 2011 23:40:18 +0000 (23:40 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 16 Dec 2011 23:40:18 +0000 (23:40 +0000)
commitcd88813dbfbb9d3e57803d17f702e65af94979e4
tree101d8fa528370bae7692ee3a8e85bf44877ba308
parentea225fb41269eb0a8c6bcb1f7778d23a8881c526
When in a limited debug information situation if we can find the original
declaration for the type then go ahead and use that, it's still smaller
than creating an all new derived type.

Part of rdar://10335756 and others.

llvm-svn: 146779
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/test/CodeGenCXX/debug-info-fwd-ref.cpp