[cfe-commits] r165683 - in /cfe/trunk/lib: Lex/PPMacroExpansion.cpp Serialization/ASTReader.cpp Serialization/ASTWriter.cpp
Douglas Gregor
dgregor at apple.com
Wed Oct 10 17:48:48 PDT 2012
Author: dgregor
Date: Wed Oct 10 19:48:48 2012
New Revision: 165683
URL: http://llvm.org/viewvc/llvm-project?rev=165683&view=rev
Log:
Remove an unused bit from the serialized IdentifierInfo
Modified:
cfe/trunk/lib/Lex/PPMacroExpansion.cpp
cfe/trunk/lib/Serialization/ASTReader.cpp
cfe/trunk/lib/Serialization/ASTWriter.cpp
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=165683&r1=165682&r2=165683&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Wed Oct 10 19:48:48 2012
@@ -97,7 +97,7 @@
PrevPrev->isDefined());
// FIXME: Actually use the ambiguity information for something.
-
+
// Wire this macro information into the chain.
MI->setPreviousDefinition(Prev->getPreviousDefinition());
Prev->setPreviousDefinition(MI);
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=165683&r1=165682&r2=165683&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Wed Oct 10 19:48:48 2012
@@ -540,8 +540,6 @@
Bits >>= 1;
bool hadMacroDefinition = Bits & 0x01;
Bits >>= 1;
- bool hasMacroDefinition = Bits & 0x01;
- Bits >>= 1;
assert(Bits == 0 && "Extra bits in the identifier?");
DataLen -= 8;
Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=165683&r1=165682&r2=165683&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Wed Oct 10 19:48:48 2012
@@ -2632,8 +2632,6 @@
clang::io::Emit16(Out, Bits);
Bits = 0;
bool HadMacroDefinition = hadMacroDefinition(II, Macro);
- bool HasMacroDefinition = HadMacroDefinition && II->hasMacroDefinition();
- Bits = (Bits << 1) | unsigned(HasMacroDefinition);
Bits = (Bits << 1) | unsigned(HadMacroDefinition);
Bits = (Bits << 1) | unsigned(II->isExtensionToken());
Bits = (Bits << 1) | unsigned(II->isPoisoned());
More information about the cfe-commits
mailing list