diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-07-01 10:37:29 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-07-01 10:37:29 +0000 |
commit | ed9834272fa3fe9f2c2ede7ec29800ae4cd260da (patch) | |
tree | 13e0fd96e6de953c8a8f9e548f5242cfbb3b4fa0 /clang/lib/Sema/Sema.cpp | |
parent | b55e5ece9614e328f9a8d4367f1c08048b3387a2 (diff) | |
download | bcm5719-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.cpp | 2 |
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. |