]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Have generateAsmString() return the AsmString computed by Sema.
authorChad Rosier <mcrosier@apple.com>
Tue, 28 Aug 2012 20:33:49 +0000 (20:33 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 28 Aug 2012 20:33:49 +0000 (20:33 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162785 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Stmt.cpp

index ac432e85a7ce8685c3814fbf3fa9a203acf7be1e..ddd47bf5abc6bde74ad2fcc6e694bb3fedff356e 100644 (file)
@@ -623,7 +623,7 @@ std::string GCCAsmStmt::generateAsmString(ASTContext &C) const {
 /// 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) {