diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-09-09 21:32:02 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-09-09 21:32:02 +0000 |
commit | eb7c388bc7ce19fffb8b4b440cee0173297e8490 (patch) | |
tree | d7c4417f81e94133787bfad68e5d59b9eb64d5db /lib/Sema/Sema.cpp | |
parent | 15a12d082486074662857299d837dfc29c207b1b (diff) |
Add a LangOptions member to IdentifierResolver.
Make Sema pass the LangOptions to IdentifierResolver's constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 2b8127b153..f43264d133 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -81,7 +81,8 @@ void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) { } Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) - : PP(pp), Context(ctxt), Consumer(consumer), CurContext(0), CurBlock(0) { + : PP(pp), Context(ctxt), Consumer(consumer), CurContext(0), CurBlock(0), + IdResolver(pp.getLangOptions()) { // Get IdentifierInfo objects for known functions for which we // do extra checking. |