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 | f75727ab146880ade52df250150bbcc638fd1da0 (patch) | |
tree | c2ba20429d4e1d9d90ad21525f7dae8b42529fb6 /llvm/lib/Analysis/InstCount.cpp | |
parent | c85e79f3e0784e7271135f07bd0d04803fbb16b0 (diff) | |
download | bcm5719-llvm-f75727ab146880ade52df250150bbcc638fd1da0.tar.gz bcm5719-llvm-f75727ab146880ade52df250150bbcc638fd1da0.zip |
Make classes in anonymous namespaces use VISIBILITY_HIDDEN to help reduce
LLVM's footprint and speed up linking.
llvm-svn: 33941
Diffstat (limited to 'llvm/lib/Analysis/InstCount.cpp')
-rw-r--r-- | llvm/lib/Analysis/InstCount.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InstCount.cpp b/llvm/lib/Analysis/InstCount.cpp index 090dcdd5779..e075fee9f6a 100644 --- a/llvm/lib/Analysis/InstCount.cpp +++ b/llvm/lib/Analysis/InstCount.cpp @@ -15,6 +15,7 @@ #include "llvm/Analysis/Passes.h" #include "llvm/Pass.h" #include "llvm/Function.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/Streams.h" #include "llvm/ADT/Statistic.h" @@ -33,7 +34,8 @@ STATISTIC(TotalMemInst, "Number of memory instructions"); namespace { - class InstCount : public FunctionPass, public InstVisitor<InstCount> { + class VISIBILITY_HIDDEN InstCount + : public FunctionPass, public InstVisitor<InstCount> { friend class InstVisitor<InstCount>; void visitFunction (Function &F) { ++TotalFuncs; } |