================
@@ -664,10 +664,16 @@ void CIRGenModule::setCommonAttributes(GlobalDecl gd,
mlir::Operation *gv) {
void CIRGenModule::setNonAliasAttributes(GlobalDecl gd, mlir::Operation *op) {
setCommonAttributes(gd, op);
+ const Decl *d = gd.getDecl();
+ if (d) {
+ if (auto gvi = mlir::dyn_cast<cir::CIRGlobalValueInterface>(op)) {
----------------
skc7 wrote:
AFAIU, PragmaClangBSSSectionAttr and other attrs implementation could be part
of follow-up PR. So added opGlobalPragmaClangSection as missing feature now.
Thanks.
https://github.com/llvm/llvm-project/pull/188200
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits