diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 23:32:05 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 23:32:05 +0000 |
| commit | 557ab15e71dccf36ac3a42d5874cd9ec292ccc3f (patch) | |
| tree | 9f50ab45c933f176cf93ee992e75aaaf03459cc5 /llvm/lib/Transforms/Utils | |
| parent | 52da61fb5cb061c702bc9c45e73dc22ab1489c8e (diff) | |
| download | bcm5719-llvm-557ab15e71dccf36ac3a42d5874cd9ec292ccc3f.tar.gz bcm5719-llvm-557ab15e71dccf36ac3a42d5874cd9ec292ccc3f.zip | |
Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in
the Transforms library. This reduces debug library size by 132 KB, debug
binary size by 376 KB, and reduces link time for llvm tools slightly.
llvm-svn: 33939
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/CodeExtractor.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/LCSSA.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/LowerSelect.cpp | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 5db664f443c..542ced8b98b 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -19,6 +19,7 @@ #include "llvm/Instructions.h" #include "llvm/Function.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/Compiler.h" #include "ValueMapper.h" #include "llvm/Analysis/ConstantFolding.h" #include "llvm/ADT/SmallVector.h" @@ -152,7 +153,7 @@ Function *llvm::CloneFunction(const Function *F, namespace { /// PruningFunctionCloner - This class is a private class used to implement /// the CloneAndPruneFunctionInto method. - struct PruningFunctionCloner { + struct VISIBILITY_HIDDEN PruningFunctionCloner { Function *NewFunc; const Function *OldFunc; DenseMap<const Value*, Value*> &ValueMap; diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp index 0f35d8b2551..87a286838df 100644 --- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp +++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp @@ -25,6 +25,7 @@ #include "llvm/Analysis/Verifier.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/ADT/StringExtras.h" #include <algorithm> @@ -40,7 +41,7 @@ AggregateArgsOpt("aggregate-extracted-args", cl::Hidden, cl::desc("Aggregate arguments to code-extracted functions")); namespace { - class CodeExtractor { + class VISIBILITY_HIDDEN CodeExtractor { typedef std::vector<Value*> Values; std::set<BasicBlock*> BlocksToExtract; DominatorSet *DS; diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index 554dcbcec22..b0a8caeef96 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -38,6 +38,7 @@ #include "llvm/Analysis/Dominators.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/Compiler.h" #include <algorithm> #include <map> using namespace llvm; @@ -45,7 +46,7 @@ using namespace llvm; STATISTIC(NumLCSSA, "Number of live out of a loop variables"); namespace { - struct LCSSA : public FunctionPass { + struct VISIBILITY_HIDDEN LCSSA : public FunctionPass { // Cached analysis information for the current function. LoopInfo *LI; DominatorTree *DT; diff --git a/llvm/lib/Transforms/Utils/LowerSelect.cpp b/llvm/lib/Transforms/Utils/LowerSelect.cpp index c0c8a329da2..5f9f593f9d1 100644 --- a/llvm/lib/Transforms/Utils/LowerSelect.cpp +++ b/llvm/lib/Transforms/Utils/LowerSelect.cpp @@ -24,12 +24,13 @@ #include "llvm/Instructions.h" #include "llvm/Pass.h" #include "llvm/Type.h" +#include "llvm/Support/Compiler.h" using namespace llvm; namespace { /// LowerSelect - Turn select instructions into conditional branches. /// - class LowerSelect : public FunctionPass { + class VISIBILITY_HIDDEN LowerSelect : public FunctionPass { bool OnlyFP; // Only lower FP select instructions? public: LowerSelect(bool onlyfp = false) : OnlyFP(onlyfp) {} |

