Method has been inlined into all callers
authorChris Lattner <sabre@nondot.org>
Wed, 2 Jun 2004 05:55:48 +0000 (05:55 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 2 Jun 2004 05:55:48 +0000 (05:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13953 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetMachine.cpp

index 82778d9b8ae105a2ae7c56a758e267f731112459..edb8c54ae9d6f07cf92c2dab2bceecb57cd38430 100644 (file)
@@ -54,10 +54,3 @@ TargetMachine::~TargetMachine() {
   delete IL;
 }
 
-unsigned TargetMachine::findOptimalStorageSize(const Type *Ty) const {
-  // All integer types smaller than ints promote to 4 byte integers.
-  if (Ty->isIntegral() && Ty->getPrimitiveSize() < 4)
-    return 4;
-
-  return DataLayout.getTypeSize(Ty);
-}