diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-27 20:23:31 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-27 20:23:31 +0000 |
commit | 3b0c2607ef7657c8ad27fa4651f46b1d7bf83907 (patch) | |
tree | a50e65c1c23841226ebf549dbe79f4b34f8f3e2d /clang/lib/AST/Stmt.cpp | |
parent | 1a61674f5acb8dff4cc43857fe80b454030b0cdb (diff) | |
download | bcm5719-llvm-3b0c2607ef7657c8ad27fa4651f46b1d7bf83907.tar.gz bcm5719-llvm-3b0c2607ef7657c8ad27fa4651f46b1d7bf83907.zip |
[ms-inline asm] Rename GenerateAsmString to generateAsmString to conform with
coding standards. Also, add stub for MSAsmStmt class as part of unifying
codegen logic for AsmStmts.
llvm-svn: 162696
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index bed288b9cf4..94aec949989 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -548,8 +548,9 @@ unsigned GCCAsmStmt::AnalyzeAsmString(SmallVectorImpl<AsmStringPiece>&Pieces, return diag::err_asm_invalid_escape; } } -/// GenerateAsmString - Assemble final asm string. -std::string GCCAsmStmt::GenerateAsmString(ASTContext &C) const { + +/// Assemble final IR asm string (GCC-style). +std::string GCCAsmStmt::generateAsmString(ASTContext &C) const { // Analyze the asm string to decompose it into its pieces. We know that Sema // has already done this, so it is guaranteed to be successful. SmallVector<GCCAsmStmt::AsmStringPiece, 4> Pieces; @@ -569,6 +570,12 @@ std::string GCCAsmStmt::GenerateAsmString(ASTContext &C) const { return AsmString; } +/// 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(); +} + Expr *MSAsmStmt::getOutputExpr(unsigned i) { return cast<Expr>(Exprs[i]); } |