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 | eef79f1af4e028163a28d13eee7b4a9721f03921 (patch) | |
tree | b9199693f64295e9227864028d354bbb89d99678 | |
parent | 1eb9e6cc4710e429cffda4a1cac5f798a654c213 (diff) | |
download | bcm5719-llvm-eef79f1af4e028163a28d13eee7b4a9721f03921.tar.gz bcm5719-llvm-eef79f1af4e028163a28d13eee7b4a9721f03921.zip |
Do not remove type names that contain a .
llvm-svn: 2747
-rw-r--r-- | llvm/lib/Transforms/IPO/DeadTypeElimination.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp b/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp index 123549f1ee2..ae7882610b4 100644 --- a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/llvm/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; } |