summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-02-06 11:28:19 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-02-06 11:28:19 +0000
commitbaba1aa0010872619dff57da8e7aad55c204f35a (patch)
treecef62a1e47ed855bfac6a9689ea1f3b0f0037fa1 /llvm/lib/Transforms
parentbf8da9d7062b143f63596743232df6d05e6e8e34 (diff)
downloadbcm5719-llvm-baba1aa0010872619dff57da8e7aad55c204f35a.tar.gz
bcm5719-llvm-baba1aa0010872619dff57da8e7aad55c204f35a.zip
Make helper static.
llvm-svn: 149865
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 9a52be1582a..d2298a0f7d7 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -90,12 +90,12 @@ static unsigned getFCmpCode(FCmpInst::Predicate CC, bool &isOrdered) {
}
}
-/// getICmpValue - This is the complement of getICmpCode, which turns an
+/// getNewICmpValue - This is the complement of getICmpCode, which turns an
/// opcode and two operands into either a constant true or false, or a brand
/// new ICmp instruction. The sign is passed in to determine which kind
/// of predicate to use in the new icmp instruction.
-Value *getNewICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS,
- InstCombiner::BuilderTy *Builder) {
+static Value *getNewICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS,
+ InstCombiner::BuilderTy *Builder) {
ICmpInst::Predicate NewPred;
if (Value *NewConstant = getICmpValue(Sign, Code, LHS, RHS, NewPred))
return NewConstant;
OpenPOWER on IntegriCloud