]> granicus.if.org Git - clang/commitdiff
IRgen: Remove dead function.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 17 May 2010 16:46:02 +0000 (16:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 17 May 2010 16:46:02 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103945 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index e6c7640252861364fbd91c4eaf9584d71c77f95f..89baa7d02aeea864404e7577343446fe31e69f95 100644 (file)
@@ -253,23 +253,6 @@ static bool canExpandIndirectArgument(QualType Ty, ASTContext &Context) {
   return true;
 }
 
-static bool typeContainsSSEVector(const RecordDecl *RD, ASTContext &Context) {
-  for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end();
-         i != e; ++i) {
-    const FieldDecl *FD = *i;
-
-    if (FD->getType()->isVectorType() &&
-        Context.getTypeSize(FD->getType()) >= 128)
-      return true;
-
-    if (const RecordType* RT = FD->getType()->getAs<RecordType>())
-      if (typeContainsSSEVector(RT->getDecl(), Context))
-        return true;
-  }
-
-  return false;
-}
-
 namespace {
 /// DefaultABIInfo - The default implementation for ABI specific
 /// details. This implementation provides information which results in