Make helper functions static.
[oota-llvm.git] / lib / Transforms / InstCombine / InstructionCombining.cpp
index 88d461e1b238060bd91254c7016ef31d88b03bbd..6cba8e37509bc925226f7c9bf2af1d56afa616cc 100644 (file)
@@ -411,8 +411,8 @@ static Value *getIdentityValue(Instruction::BinaryOps OpCode, Value *V) {
 
 /// This function factors binary ops which can be combined using distributive
 /// laws. This also factor SHL as MUL e.g. SHL(X, 2) ==> MUL(X, 4).
-Instruction::BinaryOps getBinOpsForFactorization(BinaryOperator *Op,
-                                                 Value *&LHS, Value *&RHS) {
+static Instruction::BinaryOps
+getBinOpsForFactorization(BinaryOperator *Op, Value *&LHS, Value *&RHS) {
   if (!Op)
     return Instruction::BinaryOpsEnd;