summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-18 08:18:46 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-18 08:18:46 +0000
commit4800c38a7546a8fc2435722b9e05470edb15d03e (patch)
treefa8834ba07cd6d35b8ca92a17e9288d4dc8f25b4 /llvm/lib
parentb83593e3eae45216cc741c9818285786017765bc (diff)
downloadbcm5719-llvm-4800c38a7546a8fc2435722b9e05470edb15d03e.tar.gz
bcm5719-llvm-4800c38a7546a8fc2435722b9e05470edb15d03e.zip
Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
that its last uses have been removed. llvm-svn: 32653
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Constants.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp
index 3339a182140..c2709182878 100644
--- a/llvm/lib/VMCore/Constants.cpp
+++ b/llvm/lib/VMCore/Constants.cpp
@@ -1480,13 +1480,6 @@ Constant *ConstantExpr::getCast(unsigned oc, Constant *C, const Type *Ty) {
return 0;
}
-Constant *ConstantExpr::getCast(Constant *C, const Type *Ty) {
- // Note: we can't inline this because it requires the Instructions.h header
- return getCast(CastInst::getCastOpcode(
- C, C->getType()->isSigned(), Ty, Ty->isSigned()), C, Ty);
-}
-
-
Constant *ConstantExpr::getZExtOrBitCast(Constant *C, const Type *Ty) {
if (C->getType()->getPrimitiveSizeInBits() == Ty->getPrimitiveSizeInBits())
return getCast(Instruction::BitCast, C, Ty);
OpenPOWER on IntegriCloud