LLVM API Documentation

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)

Variables

bool OnlyDebugInfo
RegisterOpt< StripSymbols > X ("strip","Strip all symbols from a module")


Function Documentation

static void RemoveDeadConstant ( Constant C  )  [static]

Definition at line 53 of file StripSymbols.cpp.

References llvm::CallingConv::C, llvm::GlobalValue::destroyConstant(), GV, and llvm::GlobalValue::hasInternalLinkage().


Variable Documentation

bool OnlyDebugInfo

Definition at line 36 of file StripSymbols.cpp.

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