[cfe-commits] r162785 - /cfe/trunk/lib/AST/Stmt.cpp
Chad Rosier
mcrosier at apple.com
Tue Aug 28 13:33:49 PDT 2012
Author: mcrosier
Date: Tue Aug 28 15:33:49 2012
New Revision: 162785
URL: http://llvm.org/viewvc/llvm-project?rev=162785&view=rev
Log:
[ms-inline asm] Have generateAsmString() return the AsmString computed by Sema.
We still need to translate the string, but this at least gets us one step
closer to using the more general EmitAsmStmt() codegen function. No functional
change intended.
Modified:
cfe/trunk/lib/AST/Stmt.cpp
Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=162785&r1=162784&r2=162785&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Tue Aug 28 15:33:49 2012
@@ -623,7 +623,7 @@
/// Assemble final IR asm string (MS-style).
std::string MSAsmStmt::generateAsmString(ASTContext &C) const {
// FIXME: This needs to be translated into the IR string representation.
- return std::string();
+ return AsmStr;
}
Expr *MSAsmStmt::getOutputExpr(unsigned i) {
More information about the cfe-commits
mailing list