ΒΆllvm::Constant* emitObjCProtocolObject(
    clang::CodeGen::CodeGenModule& CGM,
    const clang::ObjCProtocolDecl* p)

Description

Get a pointer to a protocol object for the given declaration, emitting it if it hasn't already been emitted in this translation unit. Note that the ABI for emitting a protocol reference in code (e.g. for a protocol expression) in most runtimes is not as simple as just materializing a pointer to this object.

Declared at: clang/include/clang/CodeGen/CodeGenABITypes.h:184

Parameters

clang::CodeGen::CodeGenModule& CGM
const clang::ObjCProtocolDecl* p