summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-07-01 10:37:29 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-07-01 10:37:29 +0000
commited9834272fa3fe9f2c2ede7ec29800ae4cd260da (patch)
tree13e0fd96e6de953c8a8f9e548f5242cfbb3b4fa0 /clang/lib/Sema/Sema.cpp
parentb55e5ece9614e328f9a8d4367f1c08048b3387a2 (diff)
downloadbcm5719-llvm-ed9834272fa3fe9f2c2ede7ec29800ae4cd260da.tar.gz
bcm5719-llvm-ed9834272fa3fe9f2c2ede7ec29800ae4cd260da.zip
Add Sema support for C++ classes.
llvm-svn: 52956
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index c87e615f90f..0e1a8ee56eb 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -116,6 +116,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer)
KnownFunctionIDs[id_vprintf] = &IT.get("vprintf");
TUScope = 0;
+ if (getLangOptions().CPlusPlus)
+ FieldCollector.reset(new CXXFieldCollector());
}
/// ImpCastExprToType - If Expr is not of type 'Type', insert an implicit cast.
OpenPOWER on IntegriCloud