================ @@ -136,6 +139,14 @@ class CIRGenModule : public CIRGenTypeCache { getAddrOfGlobalVar(const VarDecl *d, mlir::Type ty = {}, ForDefinition_t isForDefinition = NotForDefinition); + /// Return a constant array for the given string. + mlir::Attribute getConstantArrayFromStringLiteral(const StringLiteral *e); + + /// Return a global symbol reference to a constant array for the given string + /// literal. + cir::GlobalOp getGlobalForStringLiteral(const StringLiteral *S, + llvm::StringRef Name = ".str"); ---------------- xlauko wrote:
```suggestion cir::GlobalOp getGlobalForStringLiteral(const StringLiteral *s, llvm::StringRef name = ".str"); ``` https://github.com/llvm/llvm-project/pull/140796 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits