summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-26 03:08:43 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-26 03:08:43 +0000
commit8e7d656a4ad1a9a36953b47894fad841b83ee247 (patch)
treedb13bc833eb9663ee9444174405d079874ce9cd2 /clang/lib/Index
parentf6418b804eb306568a3784f474f2dd3107d86380 (diff)
downloadbcm5719-llvm-8e7d656a4ad1a9a36953b47894fad841b83ee247.tar.gz
bcm5719-llvm-8e7d656a4ad1a9a36953b47894fad841b83ee247.zip
De-memberify the VarDecl and FunctionDecl StorageClass enums.
This lets us remove Sema.h's dependency on Expr.h and Decl.h. llvm-svn: 112156
Diffstat (limited to 'clang/lib/Index')
-rw-r--r--clang/lib/Index/Entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp
index 7a247191bee..749dcc89932 100644
--- a/clang/lib/Index/Entity.cpp
+++ b/clang/lib/Index/Entity.cpp
@@ -134,7 +134,7 @@ Entity EntityGetter::VisitVarDecl(VarDecl *D) {
return Entity();
// If it's static it cannot be referred to by another translation unit.
- if (D->getStorageClass() == VarDecl::Static)
+ if (D->getStorageClass() == SC_Static)
return Entity(D);
return VisitNamedDecl(D);
@@ -142,7 +142,7 @@ Entity EntityGetter::VisitVarDecl(VarDecl *D) {
Entity EntityGetter::VisitFunctionDecl(FunctionDecl *D) {
// If it's static it cannot be refered to by another translation unit.
- if (D->getStorageClass() == FunctionDecl::Static)
+ if (D->getStorageClass() == SC_Static)
return Entity(D);
return VisitNamedDecl(D);
OpenPOWER on IntegriCloud