[PATCH] D113455: [clang][objc][codegen] Skip emitting ObjC category metadata when the category is empty
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 11 22:52:30 PST 2021
ahatanak added inline comments.
================
Comment at: clang/lib/CodeGen/CGObjCMac.cpp:6713
}
+ unsigned Size =
----------------
Is it not possible to check whether the category is empty here? If it's empty, you can avoid creating the global variable and abandon the builder.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113455/new/
https://reviews.llvm.org/D113455
More information about the cfe-commits
mailing list