diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-21 18:03:38 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-21 18:03:38 +0000 |
commit | c37bc69e9186f44c656a5e7f683a9f08ac49c711 (patch) | |
tree | 25ad4c9ef2d92f07d1edc1cbdef76cbc17e6de94 /llvm/lib/VMCore/ConstantFold.cpp | |
parent | 26aafc1ab5e09d5b4fde99cc029f53078ceab5dd (diff) | |
download | bcm5719-llvm-c37bc69e9186f44c656a5e7f683a9f08ac49c711.tar.gz bcm5719-llvm-c37bc69e9186f44c656a5e7f683a9f08ac49c711.zip |
Rename getConstantInt{True|False} to get{True|False} at Chris' behest.
llvm-svn: 76598
Diffstat (limited to 'llvm/lib/VMCore/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/VMCore/ConstantFold.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/ConstantFold.cpp b/llvm/lib/VMCore/ConstantFold.cpp index 7b10f444913..0e4bf6c7bfb 100644 --- a/llvm/lib/VMCore/ConstantFold.cpp +++ b/llvm/lib/VMCore/ConstantFold.cpp @@ -1398,9 +1398,9 @@ Constant *llvm::ConstantFoldCompareInstruction(LLVMContext &Context, // Don't try to evaluate aliases. External weak GV can be null. if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage()) { if (pred == ICmpInst::ICMP_EQ) - return Context.getConstantIntFalse(); + return Context.getFalse(); else if (pred == ICmpInst::ICMP_NE) - return Context.getConstantIntTrue(); + return Context.getTrue(); } // icmp eq/ne(GV,null) -> false/true } else if (C2->isNullValue()) { @@ -1408,9 +1408,9 @@ Constant *llvm::ConstantFoldCompareInstruction(LLVMContext &Context, // Don't try to evaluate aliases. External weak GV can be null. if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage()) { if (pred == ICmpInst::ICMP_EQ) - return Context.getConstantIntFalse(); + return Context.getFalse(); else if (pred == ICmpInst::ICMP_NE) - return Context.getConstantIntTrue(); + return Context.getTrue(); } } @@ -1446,8 +1446,8 @@ Constant *llvm::ConstantFoldCompareInstruction(LLVMContext &Context, APFloat::cmpResult R = C1V.compare(C2V); switch (pred) { default: llvm_unreachable("Invalid FCmp Predicate"); return 0; - case FCmpInst::FCMP_FALSE: return Context.getConstantIntFalse(); - case FCmpInst::FCMP_TRUE: return Context.getConstantIntTrue(); + case FCmpInst::FCMP_FALSE: return Context.getFalse(); + case FCmpInst::FCMP_TRUE: return Context.getTrue(); case FCmpInst::FCMP_UNO: return Context.getConstantInt(Type::Int1Ty, R==APFloat::cmpUnordered); case FCmpInst::FCMP_ORD: |