projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e021c4e
)
[PCH] Remove building a SmallPtrSet that is not actually used for anything.
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Fri, 1 Mar 2013 17:01:31 +0000
(17:01 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Fri, 1 Mar 2013 17:01:31 +0000
(17:01 +0000)
llvm-svn: 176354
clang/lib/Serialization/ASTWriter.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Serialization/ASTWriter.cpp
b/clang/lib/Serialization/ASTWriter.cpp
index
b0e36e2
..
acb0459
100644
(file)
--- a/
clang/lib/Serialization/ASTWriter.cpp
+++ b/
clang/lib/Serialization/ASTWriter.cpp
@@
-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));
}
}