diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:01:39 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-23 18:01:39 +0000 |
| commit | 784d54ba4b6741406f00181962129f22b6e61163 (patch) | |
| tree | 896aa5b7a636d977564807959d4f1e46728a9c48 /llvm/lib | |
| parent | a073fe167ce06107283653603a0fca30493756c1 (diff) | |
| download | bcm5719-llvm-784d54ba4b6741406f00181962129f22b6e61163.tar.gz bcm5719-llvm-784d54ba4b6741406f00181962129f22b6e61163.zip | |
* Remove lots of dead stuff
* Register Pass
llvm-svn: 3011
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/DeadTypeElimination.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp b/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp index 5f260a21495..34440f5004e 100644 --- a/llvm/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/llvm/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 <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() { |

