Honor the objc_runtime_name attribute when encoding class/protocol names.
authorDouglas Gregor <dgregor@apple.com>
Tue, 16 Jun 2015 21:04:55 +0000 (21:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 16 Jun 2015 21:04:55 +0000 (21:04 +0000)
commitb32684eb654ede7f242a4f9d8f209324bc954733
treee1f1e6c1ccff53fdedf6d58bb48710bd56ae78f7
parent7569f233302aab8da80f46963c3d2b09b3bc5bb7
Honor the objc_runtime_name attribute when encoding class/protocol names.

While the rest of the Objective-C metadata seems to honor
objc_runtime_name, the encoding strings produced by, e.g., @encode and
property meta, were not. Fixes rdar://problem/21408305.

llvm-svn: 239852
clang/lib/AST/ASTContext.cpp
clang/test/CodeGenObjC/objc-asm-attribute-test.m