17 #define DEBUG_TYPE "strip-dead-prototypes"
24 STATISTIC(NumDeadPrototypes,
"Number of dead prototypes removed");
29 class StripDeadPrototypesPass :
public ModulePass {
35 virtual bool runOnModule(
Module &M);
42 "Strip Unused Function Prototypes",
false,
false)
44 bool StripDeadPrototypesPass::runOnModule(
Module &M) {
45 bool MadeChange =
false;
72 return new StripDeadPrototypesPass();
static PassRegistry * getPassRegistry()
The main container class for the LLVM Intermediate Representation.
ID
LLVM Calling Convention Representation.
STATISTIC(NumDeadPrototypes,"Number of dead prototypes removed")
INITIALIZE_PASS(StripDeadPrototypesPass,"strip-dead-prototypes","Strip Unused Function Prototypes", false, false) bool StripDeadPrototypesPass
virtual void eraseFromParent()
bool isDeclaration() const
void initializeStripDeadPrototypesPassPass(PassRegistry &)
virtual void eraseFromParent()
ModulePass * createStripDeadPrototypesPass()