OSDN Git Service

Mark these two classes as hidden, shrinking libllbmgcc.dylib by 25K
authorChris Lattner <sabre@nondot.org>
Wed, 28 Jun 2006 21:58:30 +0000 (21:58 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 28 Jun 2006 21:58:30 +0000 (21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28970 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index 3961606..241801c 100644 (file)
@@ -35,6 +35,7 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Target/TargetLowering.h"
+#include "llvm/Support/Visibility.h"
 #include <algorithm>
 #include <cmath>
 #include <iostream>
@@ -43,7 +44,7 @@ using namespace llvm;
 namespace {
   Statistic<> NodesCombined ("dagcombiner", "Number of dag nodes combined");
 
-  class DAGCombiner {
+  class VISIBILITY_HIDDEN DAGCombiner {
     SelectionDAG &DAG;
     TargetLowering &TLI;
     bool AfterLegalize;
index e827bb6..aeaba53 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/Constants.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Visibility.h"
 #include <iostream>
 #include <map>
 using namespace llvm;
@@ -46,7 +47,7 @@ static const bool ViewLegalizeDAGs = 0;
 /// will attempt merge setcc and brc instructions into brcc's.
 ///
 namespace {
-class SelectionDAGLegalize {
+class VISIBILITY_HIDDEN SelectionDAGLegalize {
   TargetLowering &TLI;
   SelectionDAG &DAG;