summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-08-05 06:57:20 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-08-05 06:57:20 +0000
commit570024a8d9b4a4aa4a35f077a0a65003dc7b71fe (patch)
treeccef452e0e9e6de88bf5965f706d54ed2a416441 /clang/lib/Sema/Sema.cpp
parentef7c0ffe40cd6ac9662ee074cd97daaef6d7eaa1 (diff)
downloadbcm5719-llvm-570024a8d9b4a4aa4a35f077a0a65003dc7b71fe.tar.gz
bcm5719-llvm-570024a8d9b4a4aa4a35f077a0a65003dc7b71fe.zip
Implement #pragma GCC visibility.
llvm-svn: 110315
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index a42c6e804cf..2c834f43492 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -126,7 +126,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
LangOpts(pp.getLangOptions()), PP(pp), Context(ctxt), Consumer(consumer),
Diags(PP.getDiagnostics()), SourceMgr(PP.getSourceManager()),
ExternalSource(0), CodeCompleter(CodeCompleter), CurContext(0),
- PackContext(0), TopFunctionScope(0), ParsingDeclDepth(0),
+ PackContext(0), VisContext(0), TopFunctionScope(0), ParsingDeclDepth(0),
IdResolver(pp.getLangOptions()), GlobalNewDeleteDeclared(false),
CompleteTranslationUnit(CompleteTranslationUnit),
NumSFINAEErrors(0), SuppressAccessChecking(false),
@@ -147,6 +147,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
Sema::~Sema() {
if (PackContext) FreePackedContext();
+ if (VisContext) FreeVisContext();
delete TheTargetAttributesSema;
while (!FunctionScopes.empty())
PopFunctionOrBlockScope();
OpenPOWER on IntegriCloud