LLVM
8.0.1
|
Pass to remove unused function declarations. More...
#include "llvm/Transforms/IPO/GlobalDCE.h"
Public Member Functions | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &) |
Additional Inherited Members | |
![]() | |
static StringRef | name () |
Gets the name of the pass we are mixed into. More... | |
Pass to remove unused function declarations.
Definition at line 30 of file GlobalDCE.h.
PreservedAnalyses GlobalDCEPass::run | ( | Module & | M, |
ModuleAnalysisManager & | MAM | ||
) |
Definition at line 142 of file GlobalDCE.cpp.
References llvm::PreservedAnalyses::all(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), C, llvm::Constant::destroyConstant(), llvm::GlobalValue::eraseFromParent(), F(), llvm::GlobalValue::getComdat(), isEmptyFunction(), llvm::isSafeToDestroyConstant(), llvm::PreservedAnalyses::none(), llvm::optimizeGlobalCtorsList(), llvm::Constant::removeDeadConstantUsers(), and llvm::Value::use_empty().