Swift would like to use clang's abis to emit protocol declarations.
It needs to a hook to register when inherited protocols are emitted.
This commits adds the public API:
emitProtocolDecl(CodeGenModule &CGM, const ObjCProtocolDecl *p,
llvm::function_ref<llvm::Constant *(const ObjCProtocolDecl *)> createProtocolReference);
rdar://60888524
clang-format: please reformat the code
2 diff lines are omitted. See full diff.