summaryrefslogtreecommitdiff
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-11 09:48:55 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-11 09:48:55 +0000
commit8340d0b6595567375e80466fdcd277d5e190ed98 (patch)
tree98e7def3a2fb1ee36e8e39abc8bb6429d339d2d8 /include/llvm/Constant.h
parent562b84b3aea359d1f918184e355da82bf05eb290 (diff)
downloadllvm-8340d0b6595567375e80466fdcd277d5e190ed98.tar.gz
llvm-8340d0b6595567375e80466fdcd277d5e190ed98.tar.bz2
llvm-8340d0b6595567375e80466fdcd277d5e190ed98.tar.xz
Fix or remove code which seemed to think that the operand of a Constant
was always a User. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r--include/llvm/Constant.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index 38045fc0c1..5f32ce0ac5 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -47,10 +47,6 @@ protected:
: User(ty, vty, Ops, NumOps) {}
void destroyConstantImpl();
-
- void setOperand(unsigned i, Value *V) {
- User::setOperand(i, V);
- }
public:
/// isNullValue - Return true if this is the value that would be returned by
/// getNullValue.
@@ -90,15 +86,6 @@ public:
/// FIXME: This really should not be in VMCore.
PossibleRelocationsTy getRelocationInfo() const;
- // Specialize get/setOperand for Users as their operands are always
- // constants or BasicBlocks as well.
- User *getOperand(unsigned i) {
- return static_cast<User*>(User::getOperand(i));
- }
- const User *getOperand(unsigned i) const {
- return static_cast<const User*>(User::getOperand(i));
- }
-
/// getVectorElements - This method, which is only valid on constant of vector
/// type, returns the elements of the vector in the specified smallvector.
/// This handles breaking down a vector undef into undef elements, etc. For