diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-10-12 00:02:48 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-10-12 00:02:48 +0000 |
| commit | 98b41645034f1373af6351d5d32f2fc3c43231ba (patch) | |
| tree | 35bc9584f7d721580392144a68ace5ae165aea26 /clang/lib | |
| parent | 42e31323b6f2448af4c2e7c68f6b50f532ad3a50 (diff) | |
| download | bcm5719-llvm-98b41645034f1373af6351d5d32f2fc3c43231ba.tar.gz bcm5719-llvm-98b41645034f1373af6351d5d32f2fc3c43231ba.zip | |
Remove dead code introduced in r165751.
llvm-svn: 165772
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaStmtAsm.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp index fbd85215ca7..38f9c449147 100644 --- a/clang/lib/Sema/SemaStmtAsm.cpp +++ b/clang/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()); |

