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
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 2a0104d..bb00843 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -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;