Change ObjCRuntime GenerateProtocol[Ref] methods to take

ObjCProtocolDecl directly.

Implement CodeGen support for forward protocol decls (no-ops are so
    nice to implement).

Also moved CGObjCRuntime.h out of CodeGenModule.h

llvm-svn: 54709
This commit is contained in:
Daniel Dunbar
2008-08-13 00:59:25 +00:00
parent 40f83ac649
commit 89da6ad1db
9 changed files with 59 additions and 68 deletions

View File

@@ -72,7 +72,7 @@ namespace {
Builder->EmitGlobal(FD);
} else if (VarDecl *VD = dyn_cast<VarDecl>(D)) {
Builder->EmitGlobal(VD);
} else if (isa<ObjCClassDecl>(D)){
} else if (isa<ObjCClassDecl>(D) || isa<ObjCForwardProtocolDecl>(D)) {
//Forward declaration. Only used for type checking.
} else if (ObjCProtocolDecl *PD = dyn_cast<ObjCProtocolDecl>(D)){
// Generate Protocol object.