From bd8619d3efcbf9dbc9a6432b43f0631df8db44b7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 26 May 2002 20:17:35 +0000 Subject: [PATCH] Do not remove type names that contain a . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2747 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/DeadTypeElimination.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index 123549f1ee2..ae7882610b4 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -78,10 +78,6 @@ static inline bool ShouldNukeSymtabEntry(const std::pair&E){ if (const PointerType *PT = dyn_cast(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; }