aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/TreeTransform.h
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
commit8f726de55412870ef70e788b852c6cc50873e15b (patch)
tree329890730d3048e4c6de8eb79ae2de053c83fe46 /lib/Sema/TreeTransform.h
parentcc83f26c48dfdc99ea5fbc3c28c9c9653bd71e8c (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/TreeTransform.h')
-rw-r--r--lib/Sema/TreeTransform.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h
index 0dd9d9c191..71af263642 100644
--- a/lib/Sema/TreeTransform.h
+++ b/lib/Sema/TreeTransform.h
@@ -1185,9 +1185,10 @@ public:
/// By default, performs semantic analysis to build the new statement.
/// Subclasses may override this routine to provide different behavior.
StmtResult RebuildMSAsmStmt(SourceLocation AsmLoc,
+ SmallVectorImpl<Token> &AsmToks,
std::string &AsmString,
SourceLocation EndLoc) {
- return getSema().ActOnMSAsmStmt(AsmLoc, AsmString, EndLoc);
+ return getSema().ActOnMSAsmStmt(AsmLoc, AsmToks, AsmString, EndLoc);
}
/// \brief Build a new Objective-C \@try statement.
@@ -5611,6 +5612,7 @@ StmtResult
TreeTransform<Derived>::TransformMSAsmStmt(MSAsmStmt *S) {
// No need to transform the asm string literal.
return getDerived().RebuildMSAsmStmt(S->getAsmLoc(),
+ S->getAsmToks(),
*S->getAsmString(),
S->getEndLoc());
}