diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-28 23:17:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-28 23:17:24 +0000 |
commit | 9525528a7dc5462b6374d38c81ba5c07b11741fe (patch) | |
tree | 21af300b05123d1f41b059ac59b39f0b02183861 /lib/Analysis/ScalarEvolution.cpp | |
parent | 9ef7e06ccef062dfa5df516913b12b7c3ca17805 (diff) |
Use hidden visibility to make symbols in an anonymous namespace get
dropped. This shrinks libllvmgcc.dylib another 67K
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index c6e32c53ab..a83d2ee1c6 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -69,9 +69,10 @@ #include "llvm/Assembly/Writer.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/CommandLine.h" #include "llvm/Support/ConstantRange.h" #include "llvm/Support/InstIterator.h" -#include "llvm/Support/CommandLine.h" +#include "llvm/Support/Visibility.h" #include "llvm/ADT/Statistic.h" #include <cmath> #include <iostream> @@ -393,7 +394,7 @@ namespace { /// SCEVComplexityCompare - Return true if the complexity of the LHS is less /// than the complexity of the RHS. This comparator is used to canonicalize /// expressions. - struct SCEVComplexityCompare { + struct VISIBILITY_HIDDEN SCEVComplexityCompare { bool operator()(SCEV *LHS, SCEV *RHS) { return LHS->getSCEVType() < RHS->getSCEVType(); } @@ -1062,7 +1063,7 @@ SCEVHandle SCEVUnknown::get(Value *V) { /// evolution code. /// namespace { - struct ScalarEvolutionsImpl { + struct VISIBILITY_HIDDEN ScalarEvolutionsImpl { /// F - The function we are analyzing. /// Function &F; |