[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp PPCBranchSelector.cpp PPCCodeEmitter.cpp

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



Changes in directory llvm/lib/Target/PowerPC:

PPCAsmPrinter.cpp updated: 1.184 -> 1.185
PPCBranchSelector.cpp updated: 1.24 -> 1.25
PPCCodeEmitter.cpp updated: 1.60 -> 1.61
---
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 -5)

 PPCAsmPrinter.cpp     |    6 +++---
 PPCBranchSelector.cpp |    3 ++-
 PPCCodeEmitter.cpp    |    3 ++-
 3 files changed, 7 insertions(+), 5 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.184 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.185
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.184	Wed Jun 28 17:00:36 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp	Wed Jun 28 18:17:23 2006
@@ -241,7 +241,7 @@
 
   /// DarwinDwarfWriter - Dwarf debug info writer customized for Darwin/Mac OS X
   ///
-  struct DarwinDwarfWriter : public DwarfWriter {
+  struct VISIBILITY_HIDDEN DarwinDwarfWriter : public DwarfWriter {
     // Ctor.
     DarwinDwarfWriter(std::ostream &o, AsmPrinter *ap)
     : DwarfWriter(o, ap)
@@ -265,7 +265,7 @@
 
   /// DarwinAsmPrinter - PowerPC assembly printer, customized for Darwin/Mac OS
   /// X
-  struct DarwinAsmPrinter : public PPCAsmPrinter {
+  struct VISIBILITY_HIDDEN DarwinAsmPrinter : public PPCAsmPrinter {
   
     DarwinDwarfWriter DW;
 
@@ -309,7 +309,7 @@
 
   /// AIXAsmPrinter - PowerPC assembly printer, customized for AIX
   ///
-  struct AIXAsmPrinter : public PPCAsmPrinter {
+  struct VISIBILITY_HIDDEN AIXAsmPrinter : public PPCAsmPrinter {
     /// Map for labels corresponding to global variables
     ///
     std::map<const GlobalVariable*,std::string> GVToLabelMap;


Index: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff -u llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.24 llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.25
--- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.24	Tue Jun 27 13:18:40 2006
+++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp	Wed Jun 28 18:17:23 2006
@@ -19,11 +19,12 @@
 #include "PPCInstrBuilder.h"
 #include "PPCInstrInfo.h"
 #include "llvm/CodeGen/MachineFunctionPass.h"
+#include "llvm/Support/Visibility.h"
 #include <map>
 using namespace llvm;
 
 namespace {
-  struct PPCBSel : public MachineFunctionPass {
+  struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass {
     // OffsetMap - Mapping between BB and byte offset from start of function
     std::map<MachineBasicBlock*, unsigned> OffsetMap;
 


Index: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
diff -u llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.60 llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.61
--- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.60	Tue Jun 27 13:18:40 2006
+++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp	Wed Jun 28 18:17:23 2006
@@ -22,12 +22,13 @@
 #include "llvm/CodeGen/MachineInstrBuilder.h"
 #include "llvm/CodeGen/Passes.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/Visibility.h"
 #include "llvm/Target/TargetOptions.h"
 #include <iostream>
 using namespace llvm;
 
 namespace {
-  class PPCCodeEmitter : public MachineFunctionPass {
+  class VISIBILITY_HIDDEN PPCCodeEmitter : public MachineFunctionPass {
     TargetMachine &TM;
     MachineCodeEmitter &MCE;
 






More information about the llvm-commits mailing list