diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Mem2Reg.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Mem2Reg.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp index 5e5d67b305f..d1b2c50796e 100644 --- a/llvm/lib/Transforms/Scalar/Mem2Reg.cpp +++ b/llvm/lib/Transforms/Scalar/Mem2Reg.cpp @@ -20,12 +20,13 @@ #include "llvm/Function.h" #include "llvm/Target/TargetData.h" #include "llvm/ADT/Statistic.h" +#include "llvm/Support/Visibility.h" using namespace llvm; namespace { Statistic<> NumPromoted("mem2reg", "Number of alloca's promoted"); - struct PromotePass : public FunctionPass { + struct VISIBILITY_HIDDEN PromotePass : public FunctionPass { // runOnFunction - To run this pass, first we calculate the alloca // instructions that are safe for promotion, then we promote each one. // |