Module Debugging: Emit the canonical debug info for Objective-C classes
authorAdrian Prantl <aprantl@apple.com>
Wed, 20 Apr 2016 23:59:32 +0000 (23:59 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 20 Apr 2016 23:59:32 +0000 (23:59 +0000)
commit50fd1a87c4d1a5a78e0dab6f8d6ca5db7960de0e
tree0ab8d932308f2c94c175a3b4fcfcfbd5cf6097da
parenta8bae8237321a37f2412a00a46ea8d005b82809b
Module Debugging: Emit the canonical debug info for Objective-C classes
in the compile unit that contains their implementation even if their
interface is declared in a module.

The private @implementation of an @interface may have additional
hidden ivars so we should not defer to the public version of the
type that is found in the module.

<rdar://problem/25541798>

llvm-svn: 266937
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/Modules/ExtDebugInfo.m
clang/test/Modules/Inputs/DebugObjC.h
clang/test/Modules/ModuleDebugInfo.m