summaryrefslogtreecommitdiffstats
path: root/clang/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-09 02:18:51 +0000
committerChris Lattner <sabre@nondot.org>2008-03-09 02:18:51 +0000
commit95d72cdf0fe8058afc90386b9862586e30ff7bef (patch)
tree6374f871726ccda693eb89603a024512dca20879 /clang/Lex/Preprocessor.cpp
parentd7daed1478b768d9923f5f60a20a47d1aca74440 (diff)
downloadbcm5719-llvm-95d72cdf0fe8058afc90386b9862586e30ff7bef.tar.gz
bcm5719-llvm-95d72cdf0fe8058afc90386b9862586e30ff7bef.zip
rename the MacroExpander class to TokenLexer. It handles both
token streams and macro lexing, so a more generic name is useful. llvm-svn: 48071
Diffstat (limited to 'clang/Lex/Preprocessor.cpp')
-rw-r--r--clang/Lex/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp
index 00e8ddd6e1a..789ae6c22a0 100644
--- a/clang/Lex/Preprocessor.cpp
+++ b/clang/Lex/Preprocessor.cpp
@@ -620,7 +620,7 @@ void Preprocessor::EnterMacro(Token &Tok, MacroArgs *Args) {
CurDirLookup = 0;
if (NumCachedMacroExpanders == 0) {
- CurMacroExpander = new MacroExpander(Tok, Args, *this);
+ CurMacroExpander = new TokenLexer(Tok, Args, *this);
} else {
CurMacroExpander = MacroExpanderCache[--NumCachedMacroExpanders];
CurMacroExpander->Init(Tok, Args);
@@ -641,7 +641,7 @@ void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks) {
// Create a macro expander to expand from the specified token stream.
if (NumCachedMacroExpanders == 0) {
- CurMacroExpander = new MacroExpander(Toks, NumToks, *this);
+ CurMacroExpander = new TokenLexer(Toks, NumToks, *this);
} else {
CurMacroExpander = MacroExpanderCache[--NumCachedMacroExpanders];
CurMacroExpander->Init(Toks, NumToks);
OpenPOWER on IntegriCloud