diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-26 20:17:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-26 20:17:35 +0000 |
commit | bd8619d3efcbf9dbc9a6432b43f0631df8db44b7 (patch) | |
tree | 88cf7953b1920277ab06edb0dc18cce65afc1e60 | |
parent | abe6c3d702a2f809ea394ff9be996cb777aedb79 (diff) | |
download | external_llvm-bd8619d3efcbf9dbc9a6432b43f0631df8db44b7.zip external_llvm-bd8619d3efcbf9dbc9a6432b43f0631df8db44b7.tar.gz external_llvm-bd8619d3efcbf9dbc9a6432b43f0631df8db44b7.tar.bz2 |
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
-rw-r--r-- | lib/Transforms/IPO/DeadTypeElimination.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index 123549f..ae78826 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -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; } |