[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp LowerAllocations.cpp ScalarReplAggregates.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jun 28 16:17:40 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

LoopStrengthReduce.cpp updated: 1.84 -> 1.85
LowerAllocations.cpp updated: 1.58 -> 1.59
ScalarReplAggregates.cpp updated: 1.39 -> 1.40
---
Log message:

Use hidden visibility to make symbols in an anonymous namespace get
dropped.  This shrinks libllvmgcc.dylib another 67K


---
Diffs of the changes:  (+7 -4)

 LoopStrengthReduce.cpp   |    3 ++-
 LowerAllocations.cpp     |    3 ++-
 ScalarReplAggregates.cpp |    5 +++--
 3 files changed, 7 insertions(+), 4 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.84 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.85
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.84	Thu Jun  8 19:12:42 2006
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Wed Jun 28 18:17:24 2006
@@ -31,6 +31,7 @@
 #include "llvm/Target/TargetData.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/Visibility.h"
 #include "llvm/Target/TargetLowering.h"
 #include <algorithm>
 #include <iostream>
@@ -104,7 +105,7 @@
     }
   };
 
-  class LoopStrengthReduce : public FunctionPass {
+  class VISIBILITY_HIDDEN LoopStrengthReduce : public FunctionPass {
     LoopInfo *LI;
     ETForest *EF;
     ScalarEvolution *SE;


Index: llvm/lib/Transforms/Scalar/LowerAllocations.cpp
diff -u llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.58 llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.59
--- llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.58	Wed May 17 16:05:27 2006
+++ llvm/lib/Transforms/Scalar/LowerAllocations.cpp	Wed Jun 28 18:17:24 2006
@@ -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 @@
   /// 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;


Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.39 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.40
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.39	Thu Apr 20 15:48:50 2006
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp	Wed Jun 28 18:17:24 2006
@@ -28,9 +28,10 @@
 #include "llvm/Analysis/Dominators.h"
 #include "llvm/Target/TargetData.h"
 #include "llvm/Transforms/Utils/PromoteMemToReg.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/GetElementPtrTypeIterator.h"
 #include "llvm/Support/MathExtras.h"
-#include "llvm/Support/Debug.h"
+#include "llvm/Support/Visibility.h"
 #include "llvm/ADT/Statistic.h"
 #include "llvm/ADT/StringExtras.h"
 #include <iostream>
@@ -42,7 +43,7 @@
   Statistic<> NumConverted("scalarrepl",
                            "Number of aggregates converted to scalar");
 
-  struct SROA : public FunctionPass {
+  struct VISIBILITY_HIDDEN SROA : public FunctionPass {
     bool runOnFunction(Function &F);
 
     bool performScalarRepl(Function &F);






More information about the llvm-commits mailing list