summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-28 22:08:15 +0000
committerChris Lattner <sabre@nondot.org>2006-06-28 22:08:15 +0000
commit4a4c7fe7fadc61781f4e38e9fe2339a16c4e9013 (patch)
tree35e0bc10ac08f62eebeb75368dbc1aff40218abf /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent2f8c2d8ef2183dba67a65e1e21c1a1f9de94c263 (diff)
downloadbcm5719-llvm-4a4c7fe7fadc61781f4e38e9fe2339a16c4e9013.tar.gz
bcm5719-llvm-4a4c7fe7fadc61781f4e38e9fe2339a16c4e9013.zip
Shrink libllvmgcc.dylib by another 23K
llvm-svn: 28972
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 797b2b8db2e..e48953b7f29 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -48,6 +48,7 @@
#include "llvm/Support/InstVisitor.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/PatternMatch.h"
+#include "llvm/Support/Visibility.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"
#include <algorithm>
@@ -62,8 +63,9 @@ namespace {
Statistic<> NumDeadStore("instcombine", "Number of dead stores eliminated");
Statistic<> NumSunkInst ("instcombine", "Number of instructions sunk");
- class InstCombiner : public FunctionPass,
- public InstVisitor<InstCombiner, Instruction*> {
+ class VISIBILITY_HIDDEN InstCombiner
+ : public FunctionPass,
+ public InstVisitor<InstCombiner, Instruction*> {
// Worklist of all of the instructions that need to be simplified.
std::vector<Instruction*> WorkList;
TargetData *TD;
OpenPOWER on IntegriCloud