[cfe-commits] r165772 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Chad Rosier mcrosier at apple.com
Thu Oct 11 17:02:48 PDT 2012


Author: mcrosier
Date: Thu Oct 11 19:02:48 2012
New Revision: 165772

URL: http://llvm.org/viewvc/llvm-project?rev=165772&view=rev
Log:
Remove dead code introduced in r165751.

Modified:
    cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAsm.cpp?rev=165772&r1=165771&r2=165772&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Thu Oct 11 19:02:48 2012
@@ -407,8 +407,7 @@
 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 @@
     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 @@
     Asm += Spelling;
   }
   AsmStrings.push_back(Asm.str());
-  AsmTokRanges.push_back(std::make_pair(startTok, AsmToks.size()-1));
 
   return false;
 }
@@ -476,8 +473,7 @@
   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());





More information about the cfe-commits mailing list