aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-12 00:02:48 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-12 00:02:48 +0000
commit6ec69c3f436babcdb83fd7ecb2ad722d8719bd89 (patch)
tree384a36b88e7b64773a5a5c903f31f95e3ac61b6b
parent749ace614b6ea1ae11d194a60b18e1e43e1db243 (diff)
Remove dead code introduced in r165751.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165772 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaStmtAsm.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp
index fbd85215ca..38f9c44914 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -407,8 +407,7 @@ static void buildMSAsmPieces(std::vector<std::string> &AsmStrings,
static bool buildMSAsmStrings(Sema &SemaRef,
SourceLocation AsmLoc,
ArrayRef<Token> AsmToks,
- std::vector<std::string> &AsmStrings,
- std::vector<std::pair<unsigned,unsigned> > &AsmTokRanges) {
+ std::vector<std::string> &AsmStrings) {
assert (!AsmToks.empty() && "Didn't expect an empty AsmToks!");
SmallString<512> Asm;
@@ -421,7 +420,6 @@ static bool buildMSAsmStrings(Sema &SemaRef,
if (isNewAsm) {
if (i) {
AsmStrings.push_back(Asm.str());
- AsmTokRanges.push_back(std::make_pair(startTok, i-1));
startTok = i;
Asm.clear();
}
@@ -441,7 +439,6 @@ static bool buildMSAsmStrings(Sema &SemaRef,
Asm += Spelling;
}
AsmStrings.push_back(Asm.str());
- AsmTokRanges.push_back(std::make_pair(startTok, AsmToks.size()-1));
return false;
}
@@ -476,8 +473,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
if (AsmToks.empty()) { DEF_SIMPLE_MSASM(EmptyAsmStr); return Owned(NS); }
std::vector<std::string> AsmStrings;
- std::vector<std::pair<unsigned,unsigned> > AsmTokRanges;
- if (buildMSAsmStrings(*this, AsmLoc, AsmToks, AsmStrings, AsmTokRanges))
+ if (buildMSAsmStrings(*this, AsmLoc, AsmToks, AsmStrings))
return StmtError();
std::vector<std::vector<StringRef> > Pieces(AsmStrings.size());