diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-24 01:13:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-24 01:13:23 +0000 |
commit | ee0c4c16734a6731acc2a429da49709b36b585c4 (patch) | |
tree | c72e9499bfac92412d0b1c2096426951ab7b2f5d /clang/lib/Lex/Preprocessor.cpp | |
parent | 1698de2879bb543a805902f87d143a6c8c86b17c (diff) | |
download | bcm5719-llvm-ee0c4c16734a6731acc2a429da49709b36b585c4.tar.gz bcm5719-llvm-ee0c4c16734a6731acc2a429da49709b36b585c4.zip |
Remove unused Prev pointer from MacroInfo chain.
Remove pointless MICache: it only ever contained up to 1 object, and was only
non-empty when recovering from an error. There's no performance or memory win
from maintaining this cache.
llvm-svn: 213825
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 4a11803aa95..963b7157164 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -70,7 +70,7 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, SkipMainFilePreamble(0, true), CurPPLexer(nullptr), CurDirLookup(nullptr), CurLexerKind(CLK_Lexer), CurSubmodule(nullptr), Callbacks(nullptr), MacroArgCache(nullptr), Record(nullptr), - MIChainHead(nullptr), MICache(nullptr), DeserialMIChainHead(nullptr) { + MIChainHead(nullptr), DeserialMIChainHead(nullptr) { OwnsHeaderSearch = OwnsHeaders; ScratchBuf = new ScratchBuffer(SourceMgr); @@ -142,7 +142,7 @@ Preprocessor::~Preprocessor() { IncludeMacroStack.clear(); // Free any macro definitions. - for (MacroInfoChain *I = MIChainHead ; I ; I = I->Next) + for (MacroInfoChain *I = MIChainHead; I; I = I->Next) I->MI.Destroy(); // Free any cached macro expanders. |