LLVM API Documentation

PruneEH.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/CallGraphSCCPass.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/Compiler.h"
#include <set>
#include <algorithm>

Include dependency graph for PruneEH.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "prune-eh"

Functions

 STATISTIC (NumRemoved,"Number of invokes removed")
 STATISTIC (NumUnreach,"Number of noreturn calls optimized")
Pass * llvm::createPruneEHPass ()

Variables

static RegisterPass< PruneEH > X ("prune-eh","Remove unused exception handling info")


Define Documentation

#define DEBUG_TYPE   "prune-eh"

Definition at line 17 of file PruneEH.cpp.


Function Documentation

STATISTIC ( NumUnreach  ,
"Number of noreturn calls optimized"   
)

STATISTIC ( NumRemoved  ,
"Number of invokes removed"   
)


Variable Documentation

char ID [static]

Definition at line 38 of file PruneEH.cpp.

RegisterPass<PruneEH> X("prune-eh","Remove unused exception handling info") [static]