diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-15 16:53:30 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-15 16:53:30 +0000 |
commit | b6f46c1af9954bbeec7fdacfb352ab8483a69836 (patch) | |
tree | 8d7fabe9c1b81ce83160d2cf3bb21cdd4f3191a3 /clang/lib/AST/Stmt.cpp | |
parent | 9f1509fe44a77237a8a222a4b9d01f6911c75139 (diff) | |
download | bcm5719-llvm-b6f46c1af9954bbeec7fdacfb352ab8483a69836.tar.gz bcm5719-llvm-b6f46c1af9954bbeec7fdacfb352ab8483a69836.zip |
[ms-inline asm] Add the left brace source location and improve the pretty
printer. Patch by Enea Zaffanella <zaffanella@cs.unipr.it>.
llvm-svn: 161958
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index 9aa7f5ba55a..680ebc81c8e 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -583,11 +583,12 @@ AsmStmt::AsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, std::copy(clobbers, clobbers + NumClobbers, Clobbers); } -MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc, +MSAsmStmt::MSAsmStmt(ASTContext &C, + SourceLocation asmloc, SourceLocation lbraceloc, bool issimple, bool isvolatile, ArrayRef<Token> asmtoks, StringRef asmstr, ArrayRef<StringRef> clobbers, SourceLocation endloc) - : Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(endloc), + : Stmt(MSAsmStmtClass), AsmLoc(asmloc), LBraceLoc(lbraceloc), EndLoc(endloc), AsmStr(asmstr.str()), IsSimple(issimple), IsVolatile(isvolatile), NumAsmToks(asmtoks.size()), NumClobbers(clobbers.size()) { |