summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Lex/LexerTest.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-02 03:43:30 +0000
committerAlp Toker <alp@nuanti.com>2014-05-02 03:43:30 +0000
commit1ae02f68bea80c5114b808455b922667339f4c90 (patch)
tree214507eed3fc56622146dcfaf9962ac5043a71a7 /clang/unittests/Lex/LexerTest.cpp
parent23aa3532919dfcfea2b12fbd8c8d8b820104744c (diff)
downloadbcm5719-llvm-1ae02f68bea80c5114b808455b922667339f4c90.tar.gz
bcm5719-llvm-1ae02f68bea80c5114b808455b922667339f4c90.zip
Factor TargetInfo pointer/DelayInitialization bool pair out of Preprocessor ctor
The Preprocessor::Initialize() function already offers a clear interface to achieve this, further reducing the confusing number of states a newly constructed preprocessor can have. llvm-svn: 207825
Diffstat (limited to 'clang/unittests/Lex/LexerTest.cpp')
-rw-r--r--clang/unittests/Lex/LexerTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp
index 0faad459837..57b5c909e0a 100644
--- a/clang/unittests/Lex/LexerTest.cpp
+++ b/clang/unittests/Lex/LexerTest.cpp
@@ -69,10 +69,10 @@ protected:
VoidModuleLoader ModLoader;
HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
Target.getPtr());
- Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(),
+ Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts,
SourceMgr, HeaderInfo, ModLoader, /*IILookup =*/ 0,
- /*OwnsHeaderSearch =*/ false,
- /*DelayInitialization =*/ false);
+ /*OwnsHeaderSearch =*/ false);
+ PP.Initialize(*Target);
PP.EnterMainSourceFile();
std::vector<Token> toks;
OpenPOWER on IntegriCloud