[clang] [Clang][WIP] Constant Expressions inside of gcc'asm strings (PR #131003)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 13 09:17:39 PDT 2025


================
@@ -3193,7 +3193,7 @@ class AsmStmt : public Stmt {
   /// getOutputConstraint - Return the constraint string for the specified
   /// output operand.  All output constraints are known to be non-empty (either
   /// '=' or '+').
-  StringRef getOutputConstraint(unsigned i) const;
+  std::string getOutputConstraint(unsigned i) const;
----------------
cor3ntin wrote:

As discussed offline, std::string is better at interface boundaries https://llvm.org/docs/ProgrammersManual.html#string-like-containers

https://github.com/llvm/llvm-project/pull/131003


More information about the cfe-commits mailing list