LLVM API Documentation

Internalize.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Pass.h"
#include "llvm/Module.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/Statistic.h"
#include <fstream>
#include <iostream>
#include <set>

Include dependency graph for Internalize.cpp:

Go to the source code of this file.

Functions

ModulePassllvm::createInternalizePass (bool InternalizeEverything)
ModulePassllvm::createInternalizePass (const std::vector< const char * > &el)

Variables

Statistic NumFunctions ("internalize","Number of functions internalized")
Statistic NumGlobals ("internalize","Number of global vars internalized")
cl::opt< std::string > APIFile ("internalize-public-api-file", cl::value_desc("filename"), cl::desc("A file containing list of symbol names to preserve"))
cl::list< std::string > APIList ("internalize-public-api-list", cl::value_desc("list"), cl::desc("A list of symbol names to preserve"), cl::CommaSeparated)
RegisterOpt< InternalizePass > X ("internalize","Internalize Global Symbols")


Variable Documentation

cl::opt<std::string> APIFile("internalize-public-api-file", cl::value_desc("filename"), cl::desc("A file containing list of symbol names to preserve")) [static]

cl::list<std::string> APIList("internalize-public-api-list", cl::value_desc("list"), cl::desc("A list of symbol names to preserve"), cl::CommaSeparated) [static]

bool DontInternalize

Definition at line 45 of file Internalize.cpp.

std::set<std::string> ExternalNames

Definition at line 44 of file Internalize.cpp.

Statistic NumFunctions("internalize","Number of functions internalized") [static]

Statistic NumGlobals("internalize","Number of global vars internalized") [static]

RegisterOpt<InternalizePass> X("internalize","Internalize Global Symbols") [static]