summaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/IPO.h6
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);
};