LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

StripSymbols.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/SymbolTable.h"

Include dependency graph for StripSymbols.cpp:

Go to the source code of this file.

Functions

ModulePassllvm::createStripSymbolsPass (bool OnlyDebugInfo)
static void RemoveDeadConstant (Constant *C)


Function Documentation

static void RemoveDeadConstant Constant C  )  [static]
 

Definition at line 53 of file StripSymbols.cpp.

References llvm::User::getNumOperands(), llvm::Constant::getOperand(), llvm::Value::getType(), llvm::Value::hasOneUse(), and llvm::Value::use_empty().


Variable Documentation

RegisterOpt<StripSymbols> X("strip","Strip all symbols from a module") [static]