[cfe-commits] r45750 - in /cfe/trunk/Analysis: DeadStores.cpp LiveVariables.cpp UninitializedValues.cpp
Ted Kremenek
kremenek at apple.com
Tue Jan 8 10:19:08 PST 2008
Author: kremenek
Date: Tue Jan 8 12:19:08 2008
New Revision: 45750
URL: http://llvm.org/viewvc/llvm-project?rev=45750&view=rev
Log:
Added VISIBILITY_HIDDEN to classes/structs in anonymous namespaces.
Modified:
cfe/trunk/Analysis/DeadStores.cpp
cfe/trunk/Analysis/LiveVariables.cpp
cfe/trunk/Analysis/UninitializedValues.cpp
Modified: cfe/trunk/Analysis/DeadStores.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/DeadStores.cpp?rev=45750&r1=45749&r2=45750&view=diff
==============================================================================
--- cfe/trunk/Analysis/DeadStores.cpp (original)
+++ cfe/trunk/Analysis/DeadStores.cpp Tue Jan 8 12:19:08 2008
@@ -17,12 +17,13 @@
#include "clang/Analysis/Visitors/CFGRecStmtVisitor.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/AST/ASTContext.h"
+#include "llvm/Support/Compiler.h"
using namespace clang;
namespace {
-class DeadStoreObs : public LiveVariables::ObserverTy {
+class VISIBILITY_HIDDEN DeadStoreObs : public LiveVariables::ObserverTy {
ASTContext &Ctx;
Diagnostic &Diags;
public:
Modified: cfe/trunk/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/LiveVariables.cpp?rev=45750&r1=45749&r2=45750&view=diff
==============================================================================
--- cfe/trunk/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/Analysis/LiveVariables.cpp Tue Jan 8 12:19:08 2008
@@ -19,6 +19,7 @@
#include "clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h"
#include "clang/Analysis/FlowSensitive/DataflowSolver.h"
#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/Support/Compiler.h"
#include <string.h>
#include <stdio.h>
@@ -30,7 +31,9 @@
//===----------------------------------------------------------------------===//
namespace {
-class RegisterDecls : public CFGRecStmtDeclVisitor<RegisterDecls> {
+class VISIBILITY_HIDDEN RegisterDecls
+ : public CFGRecStmtDeclVisitor<RegisterDecls> {
+
LiveVariables::AnalysisDataTy& AD;
public:
RegisterDecls(LiveVariables::AnalysisDataTy& ad) : AD(ad) {}
@@ -53,7 +56,7 @@
static const bool Alive = true;
static const bool Dead = false;
-class TransferFuncs : public CFGRecStmtVisitor<TransferFuncs> {
+class VISIBILITY_HIDDEN TransferFuncs : public CFGRecStmtVisitor<TransferFuncs>{
LiveVariables::AnalysisDataTy& AD;
LiveVariables::ValTy LiveState;
public:
Modified: cfe/trunk/Analysis/UninitializedValues.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/UninitializedValues.cpp?rev=45750&r1=45749&r2=45750&view=diff
==============================================================================
--- cfe/trunk/Analysis/UninitializedValues.cpp (original)
+++ cfe/trunk/Analysis/UninitializedValues.cpp Tue Jan 8 12:19:08 2008
@@ -17,6 +17,7 @@
#include "clang/Basic/Diagnostic.h"
#include "clang/AST/ASTContext.h"
#include "clang/Analysis/FlowSensitive/DataflowSolver.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/ADT/SmallPtrSet.h"
@@ -28,7 +29,9 @@
namespace {
-class RegisterDecls : public CFGRecStmtDeclVisitor<RegisterDecls> {
+class VISIBILITY_HIDDEN RegisterDecls
+ : public CFGRecStmtDeclVisitor<RegisterDecls> {
+
UninitializedValues::AnalysisDataTy& AD;
public:
RegisterDecls(UninitializedValues::AnalysisDataTy& ad) : AD(ad) {}
@@ -49,8 +52,9 @@
//===----------------------------------------------------------------------===//
namespace {
-
-class TransferFuncs : public CFGStmtVisitor<TransferFuncs,bool> {
+class VISIBILITY_HIDDEN TransferFuncs
+ : public CFGStmtVisitor<TransferFuncs,bool> {
+
UninitializedValues::ValTy V;
UninitializedValues::AnalysisDataTy& AD;
public:
@@ -230,7 +234,9 @@
UninitializedValues_ValueTypes::ObserverTy::~ObserverTy() {}
namespace {
-class UninitializedValuesChecker : public UninitializedValues::ObserverTy {
+class VISIBILITY_HIDDEN UninitializedValuesChecker
+ : public UninitializedValues::ObserverTy {
+
ASTContext &Ctx;
Diagnostic &Diags;
llvm::SmallPtrSet<BlockVarDecl*,10> AlreadyWarned;
More information about the cfe-commits
mailing list