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 | 996795b0dda1c961de31430b2113f9e43634527f (patch) | |
tree | 27b7cf11a5cdbf47b7e82e12861a602252ff0768 /llvm/lib/Transforms/Scalar/LowerAllocations.cpp | |
parent | d6cba04607e3f90acc5765f8a7e5f393b0df0c9b (diff) | |
download | bcm5719-llvm-996795b0dda1c961de31430b2113f9e43634527f.tar.gz bcm5719-llvm-996795b0dda1c961de31430b2113f9e43634527f.zip |
Use hidden visibility to make symbols in an anonymous namespace get
dropped. This shrinks libllvmgcc.dylib another 67K
llvm-svn: 28975
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LowerAllocations.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LowerAllocations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp index dab8084c4c8..eab64681e57 100644 --- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp +++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp @@ -21,6 +21,7 @@ #include "llvm/Pass.h" #include "llvm/ADT/Statistic.h" #include "llvm/Target/TargetData.h" +#include "llvm/Support/Visibility.h" using namespace llvm; namespace { @@ -29,7 +30,7 @@ namespace { /// LowerAllocations - Turn malloc and free instructions into %malloc and /// %free calls. /// - class LowerAllocations : public BasicBlockPass { + class VISIBILITY_HIDDEN LowerAllocations : public BasicBlockPass { Function *MallocFunc; // Functions in the module we are processing Function *FreeFunc; // Initialized by doInitialization bool LowerMallocArgToInteger; |