summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-25 01:32:59 +0000
committerChris Lattner <sabre@nondot.org>2012-01-25 01:32:59 +0000
commitaf7b4fb9bec3858f0374d713dcbf3398a23c6fbe (patch)
tree5320eb10bc18e29dc860f77c25de62ed2475f975 /include/llvm/Type.h
parent0f193b8a6846dab25323788638e760ae03b7cd87 (diff)
downloadllvm-af7b4fb9bec3858f0374d713dcbf3398a23c6fbe.tar.gz
llvm-af7b4fb9bec3858f0374d713dcbf3398a23c6fbe.tar.bz2
llvm-af7b4fb9bec3858f0374d713dcbf3398a23c6fbe.tar.xz
Remove the Type::getNumElements() method, which is only called in 4 places,
did something extremely surprising, and shadowed actually useful implementations that had completely different behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 95edb50459..e7c165b1bf 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -294,10 +294,6 @@ public:
/// otherwise return 'this'.
Type *getScalarType();
- /// getNumElements - If this is a vector type, return the number of elements,
- /// otherwise return zero.
- unsigned getNumElements();
-
//===--------------------------------------------------------------------===//
// Type Iteration support.
//