[PCH] Remove building a SmallPtrSet that is not actually used for anything.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 1 Mar 2013 17:01:31 +0000 (17:01 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 1 Mar 2013 17:01:31 +0000 (17:01 +0000)
llvm-svn: 176354

clang/lib/Serialization/ASTWriter.cpp

index b0e36e2..acb0459 100644 (file)
@@ -1758,12 +1758,10 @@ void ASTWriter::WritePreprocessor(const Preprocessor &PP, bool IsModule) {
   // Construct the list of macro definitions that need to be serialized.
   SmallVector<std::pair<const IdentifierInfo *, MacroDirective *>, 2>
     MacrosToEmit;
-  llvm::SmallPtrSet<const IdentifierInfo*, 4> MacroDefinitionsSeen;
   for (Preprocessor::macro_iterator I = PP.macro_begin(Chain == 0),
                                     E = PP.macro_end(Chain == 0);
        I != E; ++I) {
     if (!IsModule || I->second->isPublic()) {
-      MacroDefinitionsSeen.insert(I->first);
       MacrosToEmit.push_back(std::make_pair(I->first, I->second));
     }
   }