[PATCH] D77077: [clang] CodeGen: Make getOrEmitProtocol public for Swift
Arnold Schwaighofer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 30 11:25:03 PDT 2020
aschwaighofer created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77077
Files:
clang/include/clang/CodeGen/CodeGenABITypes.h
clang/lib/CodeGen/CGObjCGNU.cpp
clang/lib/CodeGen/CGObjCMac.cpp
clang/lib/CodeGen/CGObjCRuntime.cpp
clang/lib/CodeGen/CGObjCRuntime.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77077.253647.patch
Type: text/x-patch
Size: 16709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200330/320a523d/attachment-0001.bin>
More information about the cfe-commits
mailing list