Do not remove type names that contain a .
authorChris Lattner <sabre@nondot.org>
Sun, 26 May 2002 20:17:35 +0000 (20:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 May 2002 20:17:35 +0000 (20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2747 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/DeadTypeElimination.cpp

index 123549f1ee201798b88545a539a3ec2219c82d9f..ae7882610b419e8acfabf1e0883301855f547b26 100644 (file)
@@ -78,10 +78,6 @@ static inline bool ShouldNukeSymtabEntry(const std::pair<std::string,Value*>&E){
   if (const PointerType *PT = dyn_cast<PointerType>(E.second))
     if (PT->getElementType()->isPrimitiveType()) return true;
 
-  // The only types that could contain .'s in the program are things generated
-  // by GCC itself, including "complex.float" and friends.  Nuke them too.
-  if (E.first.find('.') != std::string::npos) return true;
-
   return false;
 }