summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-28 06:07:14 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-28 06:07:14 +0000
commit853fbea313b8be8cbfd2ac94e3e366300621aad6 (patch)
treed67b37cd1cea6d3af63c9108314fbf825003c35f /clang/lib/Sema/Sema.cpp
parent17013286755b05167ce896701769c23b392fe366 (diff)
downloadbcm5719-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.cpp3
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.
OpenPOWER on IntegriCloud