diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-15 04:34:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-15 04:34:46 +0000 |
commit | 430aa9ec1c462886be420f000d62ddd93fc45250 (patch) | |
tree | e24e44b74caeee5f8fe5a3c091f6149f79eaa6a9 /include/llvm/Transforms | |
parent | 20ac79e3298d41be5a22ee8d27acc19eb358ca22 (diff) | |
download | external_llvm-430aa9ec1c462886be420f000d62ddd93fc45250.zip external_llvm-430aa9ec1c462886be420f000d62ddd93fc45250.tar.gz external_llvm-430aa9ec1c462886be420f000d62ddd93fc45250.tar.bz2 |
-cleangcc pass now remove type names that are never referenced and type names for pointers to primitive types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 893b5d6..99ff169 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -6,10 +6,11 @@ #ifndef LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H #define LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H -#include "llvm/Pass.h" +#include "llvm/Analysis/FindUsedTypes.h" class CleanupGCCOutput : public Pass { Method *Malloc, *Free; // Pointers to external declarations, or null if none + FindUsedTypes FUT; // Use FUT to eliminate type names that are never used public: inline CleanupGCCOutput() : Malloc(0), Free(0) {} @@ -31,6 +32,9 @@ public: // doPerMethodWork - This method simplifies the specified method hopefully. // bool doPerMethodWork(Method *M); + + // doPassFinalization - Strip out type names that are unused by the program + bool doPassFinalization(Module *M); private: bool doOneCleanupPass(Method *M); }; |