summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-14 23:14:45 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-14 23:14:45 +0000
commit767a7b9ed054f9d661b5f07e252570c7b87e10af (patch)
treefec4eadeda68acfdb760a337c991a8498ecf9354 /clang/lib/Parse/ParseStmt.cpp
parent6cf6f89005b84f4a18c99a5a66504e1208388d09 (diff)
downloadbcm5719-llvm-767a7b9ed054f9d661b5f07e252570c7b87e10af.tar.gz
bcm5719-llvm-767a7b9ed054f9d661b5f07e252570c7b87e10af.zip
[ms-inline asm] Remove the last bits of LineEnds.
llvm-svn: 161904
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r--clang/lib/Parse/ParseStmt.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 915a62ea163..0ff1c8a96a6 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1657,7 +1657,6 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
SourceManager &SrcMgr = PP.getSourceManager();
SourceLocation EndLoc = AsmLoc;
SmallVector<Token, 4> AsmToks;
- SmallVector<unsigned, 4> LineEnds;
bool InBraces = false;
unsigned short savedBraceCount = 0;
@@ -1741,8 +1740,6 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
++NumTokensRead;
} while (1);
- LineEnds.push_back(AsmToks.size());
-
if (InBraces && BraceCount != savedBraceCount) {
// __asm without closing brace (this can happen at EOF).
Diag(Tok, diag::err_expected_rbrace);
@@ -1755,8 +1752,7 @@ StmtResult Parser::ParseMicrosoftAsmStatement(SourceLocation AsmLoc) {
}
// FIXME: We should be passing source locations for better diagnostics.
- return Actions.ActOnMSAsmStmt(AsmLoc, llvm::makeArrayRef(AsmToks),
- llvm::makeArrayRef(LineEnds), EndLoc);
+ return Actions.ActOnMSAsmStmt(AsmLoc, llvm::makeArrayRef(AsmToks), EndLoc);
}
/// ParseAsmStatement - Parse a GNU extended asm statement.
OpenPOWER on IntegriCloud