* Remove lots of dead stuff
authorChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 18:01:39 +0000 (18:01 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Jul 2002 18:01:39 +0000 (18:01 +0000)
* Register Pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3011 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/DeadTypeElimination.cpp

index 5f260a214953a9d6738807d84f998931f6b5f1c2..34440f5004eee53bedc3c8885d8119f3923b6f77 100644 (file)
 #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 <algorithm>
-#include <iostream>
 
 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<CleanupGCCOutput> X("cleangcc", "Cleanup GCC Output");
 }
 
 Pass *createCleanupGCCOutputPass() {