LLVM API Documentation

DeadTypeElimination.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Analysis/FindUsedTypes.h"
#include "llvm/Module.h"
#include "llvm/TypeSymbolTable.h"
#include "llvm/DerivedTypes.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Compiler.h"

Include dependency graph for DeadTypeElimination.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "deadtypeelim"

Functions

 STATISTIC (NumKilled,"Number of unused typenames removed from symtab")
ModulePass * llvm::createDeadTypeEliminationPass ()
static bool ShouldNukeSymtabEntry (const Type *Ty)

Variables

static RegisterPass< DTE > X ("deadtypeelim","Dead Type Elimination")


Define Documentation

#define DEBUG_TYPE   "deadtypeelim"

Definition at line 15 of file DeadTypeElimination.cpp.


Function Documentation

static bool ShouldNukeSymtabEntry ( const Type *  Ty  )  [inline, static]

STATISTIC ( NumKilled  ,
"Number of unused typenames removed from symtab"   
)


Variable Documentation

char ID [static]

Definition at line 29 of file DeadTypeElimination.cpp.

RegisterPass<DTE> X("deadtypeelim","Dead Type Elimination") [static]