From 853fbea313b8be8cbfd2ac94e3e366300621aad6 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 28 Jun 2008 06:07:14 +0000 Subject: Replace CurFunctionDecl and CurMethodDecl with methods getCurFunctionDecl() and getCurMethodDecl() that return the appropriate Decl through CurContext. llvm-svn: 52852 --- clang/lib/Sema/Sema.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Sema/Sema.cpp') 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. -- cgit v1.2.3