r176354 - [PCH] Remove building a SmallPtrSet that is not actually used for anything.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Mar 1 09:01:31 PST 2013
Author: akirtzidis
Date: Fri Mar 1 11:01:31 2013
New Revision: 176354
URL: http://llvm.org/viewvc/llvm-project?rev=176354&view=rev
Log:
[PCH] Remove building a SmallPtrSet that is not actually used for anything.
Modified:
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=176354&r1=176353&r2=176354&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Fri Mar 1 11:01:31 2013
@@ -1758,12 +1758,10 @@ void ASTWriter::WritePreprocessor(const
// 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));
}
}
More information about the cfe-commits
mailing list