[clang] [Clang] Constant Expressions inside of GCC' asm strings (PR #131003)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 09:53:00 PDT 2025
================
@@ -3326,9 +3325,11 @@ class GCCAsmStmt : public AsmStmt {
//===--- Asm String Analysis ---===//
- const StringLiteral *getAsmString() const { return AsmStr; }
- StringLiteral *getAsmString() { return AsmStr; }
- void setAsmString(StringLiteral *E) { AsmStr = E; }
+ const Expr *getAsmStringExpr() const { return AsmStr; }
+ Expr *getAsmStringExpr() { return AsmStr; }
+ void setAsmString(Expr *E) { AsmStr = E; }
----------------
erichkeane wrote:
I see now... that one I think just leave alone, its a whole thing. But `setAsmStringExpr` to differentiate from `getAsmString` and `getAsmStringExpr` seems sensible.
https://github.com/llvm/llvm-project/pull/131003
More information about the cfe-commits
mailing list