summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-04-01 23:04:06 +0000
committerSteve Naroff <snaroff@apple.com>2008-04-01 23:04:06 +0000
commit257520b1b4c64381bd2216613b0f69b956438528 (patch)
treecd245193f399e6d8481fd3a0711a2b3451ff43bd /clang/lib/AST/Decl.cpp
parent94896e17bbd8af28aa301133635d80b55f0b7b01 (diff)
downloadbcm5719-llvm-257520b1b4c64381bd2216613b0f69b956438528.tar.gz
bcm5719-llvm-257520b1b4c64381bd2216613b0f69b956438528.zip
Fairly large "cleaup" related to changing ObjCCompatibleAliasDecl superclass (to inherit from NamedDecl, instead of ScopedDecl).
- Added a DenseMap to associate an IdentifierInfo with the ObjCCompatibleAliasDecl. - Renamed LookupScopedDecl->LookupDecl and changed it's return type to Decl. Also added lookup for ObjCCompatibleAliasDecl's. - Removed Sema::LookupInterfaceDecl(). Converted clients to used LookupDecl(). - Some minor indentation changes. Will deal with ObjCInterfaceDecl and getObjCInterfaceDecl() in a separate commit... llvm-svn: 49058
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index bad65cf84c6..4c8f6b86b7c 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -343,10 +343,6 @@ bool ScopedDecl::isDefinedOutsideFunctionOrMethod() const {
if (isa<FunctionDecl>(this))
return true;
- // FIXME: Why is ObjCCompatibleAlias a scopedecl?
- if (isa<ObjCCompatibleAliasDecl>(this))
- return true;
-
// FIXME: This needs to check the context the decl was defined in!
if (isa<TypeDecl>(this) || isa<EnumConstantDecl>(this))
return true;
OpenPOWER on IntegriCloud