Mark these two classes as hidden, shrinking libllbmgcc.dylib by 25K

llvm-svn: 28970
This commit is contained in:
Chris Lattner 2006-06-28 21:58:30 +00:00
parent 02157b0627
commit 54a34cd20b
2 changed files with 4 additions and 2 deletions

View File

@ -35,6 +35,7 @@
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/MathExtras.h" #include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetLowering.h" #include "llvm/Target/TargetLowering.h"
#include "llvm/Support/Visibility.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <iostream> #include <iostream>
@ -43,7 +44,7 @@ using namespace llvm;
namespace { namespace {
Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined"); Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
class DAGCombiner { class VISIBILITY_HIDDEN DAGCombiner {
SelectionDAG &DAG; SelectionDAG &DAG;
TargetLowering &TLI; TargetLowering &TLI;
bool AfterLegalize; bool AfterLegalize;

View File

@ -21,6 +21,7 @@
#include "llvm/Constants.h" #include "llvm/Constants.h"
#include "llvm/Support/MathExtras.h" #include "llvm/Support/MathExtras.h"
#include "llvm/Support/CommandLine.h" #include "llvm/Support/CommandLine.h"
#include "llvm/Support/Visibility.h"
#include <iostream> #include <iostream>
#include <map> #include <map>
using namespace llvm; using namespace llvm;
@ -46,7 +47,7 @@ static const bool ViewLegalizeDAGs = 0;
/// will attempt merge setcc and brc instructions into brcc's. /// will attempt merge setcc and brc instructions into brcc's.
/// ///
namespace { namespace {
class SelectionDAGLegalize { class VISIBILITY_HIDDEN SelectionDAGLegalize {
TargetLowering &TLI; TargetLowering &TLI;
SelectionDAG &DAG; SelectionDAG &DAG;