diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 23:42:17 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 23:42:17 +0000 |
commit | d7d83db5f22d05e5b14b6b1d838668222113c83a (patch) | |
tree | 295ee828cbd1ba13f6eb1e28b112ef26aebb72fa /lib/Analysis/ValueNumbering.cpp | |
parent | d3874049a55fe1af515c4f0d8f5a4040803567cb (diff) |
Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduce
LLVM's footprint and speed up linking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ValueNumbering.cpp')
-rw-r--r-- | lib/Analysis/ValueNumbering.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Analysis/ValueNumbering.cpp b/lib/Analysis/ValueNumbering.cpp index 5c57fb74a4..963ccb90f3 100644 --- a/lib/Analysis/ValueNumbering.cpp +++ b/lib/Analysis/ValueNumbering.cpp @@ -19,6 +19,7 @@ #include "llvm/Instructions.h" #include "llvm/Pass.h" #include "llvm/Type.h" +#include "llvm/Support/Compiler.h" using namespace llvm; // Register the ValueNumbering interface, providing a nice name to refer to. @@ -48,7 +49,8 @@ namespace { /// lexically identical expressions. This does not require any ahead of time /// analysis, so it is a very fast default implementation. /// - struct BasicVN : public ImmutablePass, public ValueNumbering { + struct VISIBILITY_HIDDEN BasicVN + : public ImmutablePass, public ValueNumbering { /// getEqualNumberNodes - Return nodes with the same value number as the /// specified Value. This fills in the argument vector with any equal /// values. @@ -69,7 +71,7 @@ namespace { /// BVNImpl - Implement BasicVN in terms of a visitor class that /// handles the different types of instructions as appropriate. /// - struct BVNImpl : public InstVisitor<BVNImpl> { + struct VISIBILITY_HIDDEN BVNImpl : public InstVisitor<BVNImpl> { std::vector<Value*> &RetVals; BVNImpl(std::vector<Value*> &RV) : RetVals(RV) {} |