diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-06-28 06:07:14 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-06-28 06:07:14 +0000 |
commit | 853fbea313b8be8cbfd2ac94e3e366300621aad6 (patch) | |
tree | d67b37cd1cea6d3af63c9108314fbf825003c35f /clang/lib/Sema/Sema.cpp | |
parent | 17013286755b05167ce896701769c23b392fe366 (diff) | |
download | bcm5719-llvm-853fbea313b8be8cbfd2ac94e3e366300621aad6.tar.gz bcm5719-llvm-853fbea313b8be8cbfd2ac94e3e366300621aad6.zip |
Replace CurFunctionDecl and CurMethodDecl with methods getCurFunctionDecl() and getCurMethodDecl() that return the appropriate Decl through CurContext.
llvm-svn: 52852
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 93210ab70f4..c87e615f90f 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -97,8 +97,7 @@ void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) { } Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) - : PP(pp), Context(ctxt), Consumer(consumer), - CurFunctionDecl(0), CurMethodDecl(0), CurContext(0) { + : PP(pp), Context(ctxt), Consumer(consumer), CurContext(0) { // Get IdentifierInfo objects for known functions for which we // do extra checking. |