summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerAllocations.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-28 23:17:24 +0000
committerChris Lattner <sabre@nondot.org>2006-06-28 23:17:24 +0000
commit9525528a7dc5462b6374d38c81ba5c07b11741fe (patch)
tree21af300b05123d1f41b059ac59b39f0b02183861 /lib/Transforms/Utils/LowerAllocations.cpp
parent9ef7e06ccef062dfa5df516913b12b7c3ca17805 (diff)
downloadllvm-9525528a7dc5462b6374d38c81ba5c07b11741fe.tar.gz
llvm-9525528a7dc5462b6374d38c81ba5c07b11741fe.tar.bz2
llvm-9525528a7dc5462b6374d38c81ba5c07b11741fe.tar.xz
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/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r--lib/Transforms/Utils/LowerAllocations.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp
index dab8084c4c..eab64681e5 100644
--- a/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/lib/Transforms/Utils/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;