From 2f8c2d8ef2183dba67a65e1e21c1a1f9de94c263 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Jun 2006 22:00:36 +0000 Subject: shrink libllvmgcc.dylib another 25K llvm-svn: 28971 --- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 ++- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 0de7843b776..2a0104d4770 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -33,6 +33,7 @@ #include "llvm/Support/MathExtras.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/Visibility.h" #include "llvm/Target/MRegisterInfo.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetOptions.h" @@ -45,7 +46,7 @@ using namespace llvm; namespace { Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed"); - class PPCAsmPrinter : public AsmPrinter { + class VISIBILITY_HIDDEN PPCAsmPrinter : public AsmPrinter { public: std::set FnStubs, GVStubs; diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 659c2d7fcb5..6c057fdb75b 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -28,6 +28,7 @@ #include "llvm/Intrinsics.h" #include "llvm/Support/Debug.h" #include "llvm/Support/MathExtras.h" +#include "llvm/Support/Visibility.h" #include #include using namespace llvm; @@ -39,7 +40,7 @@ namespace { /// PPCDAGToDAGISel - PPC specific code to select PPC machine /// instructions for SelectionDAG operations. /// - class PPCDAGToDAGISel : public SelectionDAGISel { + class VISIBILITY_HIDDEN PPCDAGToDAGISel : public SelectionDAGISel { PPCTargetMachine &TM; PPCTargetLowering PPCLowering; unsigned GlobalBaseReg; -- cgit v1.2.3