diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-16 21:00:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-16 21:00:43 +0000 |
commit | ae5a0b53782b1219af0017649f0b6a7b5b24752e (patch) | |
tree | 081375a750b6059ae76c21be9efce57b12b415f5 /lib/VMCore/Type.cpp | |
parent | d61f84ee651e28346abdbf11d01957b8e2fb9fc7 (diff) | |
download | llvm-ae5a0b53782b1219af0017649f0b6a7b5b24752e.tar.gz llvm-ae5a0b53782b1219af0017649f0b6a7b5b24752e.tar.bz2 llvm-ae5a0b53782b1219af0017649f0b6a7b5b24752e.tar.xz |
remove Type::getVAArgsPromotedType, which is dead, and tidy up a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index e4496db431..9f75c8b6d1 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -116,15 +116,6 @@ const Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { } } -const Type *Type::getVAArgsPromotedType(LLVMContext &C) const { - if (ID == IntegerTyID && getSubclassData() < 32) - return Type::getInt32Ty(C); - else if (ID == FloatTyID) - return Type::getDoubleTy(C); - else - return this; -} - /// getScalarType - If this is a vector type, return the element type, /// otherwise return this. const Type *Type::getScalarType() const { |