aboutsummaryrefslogtreecommitdiff
path: root/Sema/Sema.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-29 23:05:20 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-29 23:05:20 +0000
commit89307ffaf8acf4d6fdffd72b607ca4fbcfdffc9d (patch)
treebbf0f3ba5d789a183976c58fc486375e4d480bba /Sema/Sema.cpp
parent2ff3e691ecc63a5d82d4023b46b5b47ce14ace53 (diff)
Yesterday, I simplified how we stream top-level decls.
After a discussion with Ted, we both came to the conclusion that adding a "HandleTopLevelDeclaration" hook to ASConsumer is far more elegant. The default implementation of HandleTopLevelDeclaration will be responsible for iterating over the ScopedDecl (which has a chain of the decls:-). TODO: Once Ted adds HandleTopLevelDeclaration, make sure TagDecls are chainged appropriately... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/Sema.cpp')
-rw-r--r--Sema/Sema.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sema/Sema.cpp b/Sema/Sema.cpp
index d3930f60fa..6b799e0c74 100644
--- a/Sema/Sema.cpp
+++ b/Sema/Sema.cpp
@@ -63,8 +63,8 @@ QualType Sema::GetObjcProtoType(SourceLocation Loc) {
return Context.getObjcProtoType();
}
-Sema::Sema(Preprocessor &pp, ASTContext &ctxt, std::vector<Decl*> &prevInGroup)
- : PP(pp), Context(ctxt), CurFunctionDecl(0), TopLevelDeclList(prevInGroup) {
+Sema::Sema(Preprocessor &pp, ASTContext &ctxt)
+ : PP(pp), Context(ctxt), CurFunctionDecl(0) {
// Get IdentifierInfo objects for known functions for which we
// do extra checking.