diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-28 21:58:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-28 21:58:30 +0000 |
commit | 360e8200ec544a3c877ff74b48f445140ac9bbd6 (patch) | |
tree | e63103f50ad3207f0c33736fa45cdac5a55c7e00 /lib | |
parent | f190d3805519beb3ec9afe4adfda30e82dcd2995 (diff) | |
download | llvm-360e8200ec544a3c877ff74b48f445140ac9bbd6.tar.gz llvm-360e8200ec544a3c877ff74b48f445140ac9bbd6.tar.bz2 llvm-360e8200ec544a3c877ff74b48f445140ac9bbd6.tar.xz |
Mark these two classes as hidden, shrinking libllbmgcc.dylib by 25K
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 3961606b20..241801ceda 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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; diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index e827bb63ff..aeaba539b1 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -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; |