diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-03 03:46:04 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-03 03:46:04 +0000 |
commit | 080434373383ed7883c7fda8d17e75eec13888f3 (patch) | |
tree | b4b20d6ef636d75a5af46da1cd8433555b4be3d5 /clang/unittests/Lex/PPCallbacksTest.cpp | |
parent | b6cc592ea3195d49bee6c59f24a071d18865cb57 (diff) | |
download | bcm5719-llvm-080434373383ed7883c7fda8d17e75eec13888f3.tar.gz bcm5719-llvm-080434373383ed7883c7fda8d17e75eec13888f3.zip |
Eliminate ASTContext's DelayInitialization flag
Having various possible states of initialization following construction doesn't
add value here.
Also remove the unused size_reserve parameter.
llvm-svn: 207897
Diffstat (limited to 'clang/unittests/Lex/PPCallbacksTest.cpp')
-rw-r--r-- | clang/unittests/Lex/PPCallbacksTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/unittests/Lex/PPCallbacksTest.cpp b/clang/unittests/Lex/PPCallbacksTest.cpp index 043c3003ce9..d3138c05005 100644 --- a/clang/unittests/Lex/PPCallbacksTest.cpp +++ b/clang/unittests/Lex/PPCallbacksTest.cpp @@ -213,9 +213,11 @@ protected: // parser actually sets correct pragma handlers for preprocessor // according to LangOptions, so we init Parser to register opencl // pragma handlers - ASTContext Context(OpenCLLangOpts, SourceMgr, Target.getPtr(), + ASTContext Context(OpenCLLangOpts, SourceMgr, PP.getIdentifierTable(), PP.getSelectorTable(), - PP.getBuiltinInfo(), 0); + PP.getBuiltinInfo()); + Context.InitBuiltinTypes(*Target); + ASTConsumer Consumer; Sema S(PP, Context, Consumer); Parser P(PP, S, false); |