IRGen: Get objc protocol erasure working.

Don't try to emit witness tables for protocols that don't need them when emitting a protocol erasure. (We'll need to eventually ensure that ObjC method metadata gets generated for the conforming methods, but we don't yet, so this will only work for types that already have ObjC-dispatchable methods.)

Swift SVN r5610
This commit is contained in:
Joe Groff
2013-06-16 05:06:28 +00:00
parent aa075add80
commit 34dc94679d
2 changed files with 33 additions and 5 deletions

View File

@@ -46,3 +46,16 @@ typedef long NSInteger;
struct NSRect NSMakeRect(double, double, double, double);
struct NSRect NSInsetRect(struct NSRect, double, double);
NSString *NSStringFromRect(struct NSRect r);
@protocol NSRuncing
- (void)runce;
@end
@protocol NSFunging
- (void)funge;
@end
@interface NSSpoon <NSRuncing, NSFunging>
- (void)runce;
- (void)funge;
@end