[PCH] Remove building a SmallPtrSet that is not actually used for anything.

llvm-svn: 176354
This commit is contained in:
Argyrios Kyrtzidis 2013-03-01 17:01:31 +00:00
parent e021c4e7cc
commit 7c9ba11747
1 changed files with 0 additions and 2 deletions

View 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));
}
}