summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-06 20:03:45 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-06 20:03:45 +0000
commitc6c7133ed69d077cb9fcb1aa9e3b442824852187 (patch)
tree6a728358dbf814776efea8faa2b9582df7316c10 /clang/lib/Parse/ParseStmt.cpp
parenta1f8c0ab93ef8bbf54f3643ccfa569488d8864fc (diff)
downloadbcm5719-llvm-c6c7133ed69d077cb9fcb1aa9e3b442824852187.tar.gz
bcm5719-llvm-c6c7133ed69d077cb9fcb1aa9e3b442824852187.zip
[ms-inline asm] Pass Tokens to Sema and store them in the AST. No functional
change intended. No test case as there's no real way to test at this time. llvm-svn: 161342
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index e13ce6b4076..69f28ecd6db 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1816,12 +1816,9 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
}
}
- // FIXME: We should be passing the tokens and source locations, rather than
- // (or possibly in addition to the) AsmString. Sema is going to interact with
- // MC to determine Constraints, Clobbers, etc., which would be simplest to
- // do with the tokens.
+ // FIXME: We should be passing source locations for better diagnostics.
std::string AsmString = Asm.c_str();
- return Actions.ActOnMSAsmStmt(AsmLoc, AsmString, EndLoc);
+ return Actions.ActOnMSAsmStmt(AsmLoc, AsmToks, AsmString, EndLoc);
}
/// ParseAsmStatement - Parse a GNU extended asm statement.
OpenPOWER on IntegriCloud