From 72c27e2ae56a4c49b0f77436d834557dbdd09351 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Jul 2002 18:01:39 +0000 Subject: [PATCH] * Remove lots of dead stuff * Register Pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3011 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/DeadTypeElimination.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index 5f260a21495..34440f5004e 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -18,15 +18,7 @@ #include "llvm/Module.h" #include "llvm/SymbolTable.h" #include "llvm/DerivedTypes.h" -#include "llvm/iPHINode.h" -#include "llvm/iMemory.h" -#include "llvm/iTerminators.h" -#include "llvm/iOther.h" -#include "llvm/Support/CFG.h" -#include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "Support/StatisticReporter.h" -#include -#include static Statistic<> NumTypeSymtabEntriesKilled("cleangcc\t- Number of unused typenames removed from symtab"); @@ -34,8 +26,6 @@ using std::vector; namespace { struct CleanupGCCOutput : public FunctionPass { - const char *getPassName() const { return "Cleanup GCC Output"; } - // doPassInitialization - For this pass, it removes global symbol table // entries for primitive types. These are never used for linking in GCC and // they make the output uglier to look at, so we nuke them. @@ -58,6 +48,7 @@ namespace { AU.addRequired(FindUsedTypes::ID); } }; + RegisterPass X("cleangcc", "Cleanup GCC Output"); } Pass *createCleanupGCCOutputPass() { -- 2.34.1