Store inline asm code in the AST.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44255 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaStmt.cpp b/Sema/SemaStmt.cpp
index 65acf0b..ad3d2e4 100644
--- a/Sema/SemaStmt.cpp
+++ b/Sema/SemaStmt.cpp
@@ -644,9 +644,12 @@
return new ReturnStmt(ReturnLoc, (Expr*)RetValExp);
}
-Sema::StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc,
+Sema::StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc,
+ ExprTy *AsmString,
SourceLocation RParenLoc) {
- return new AsmStmt(AsmLoc, RParenLoc);
+ Expr *E = (Expr *)AsmString;
+
+ return new AsmStmt(AsmLoc, cast<StringLiteral>(E), RParenLoc);
}
Action::StmtResult