LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
llvm::Mangler Class Reference

#include <Mangler.h>

Public Types

enum  ManglerPrefixTy { Default, Private, LinkerPrivate }
 

Public Member Functions

 Mangler (const TargetMachine *TM)
 
void getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, bool isImplicitlyPrivate, bool UseGlobalPrefix=true)
 
void getNameWithPrefix (SmallVectorImpl< char > &OutName, const Twine &GVName, ManglerPrefixTy PrefixTy=Mangler::Default, bool UseGlobalPrefix=true)
 

Detailed Description

Definition at line 27 of file Mangler.h.

Member Enumeration Documentation

Enumerator
Default 

Emit default string before each symbol.

Private 

Emit "private" prefix before each symbol.

LinkerPrivate 

Emit "linker private" prefix before each symbol.

Definition at line 29 of file Mangler.h.

Constructor & Destructor Documentation

llvm::Mangler::Mangler ( const TargetMachine TM)
inline

Definition at line 49 of file Mangler.h.

Member Function Documentation

void Mangler::getNameWithPrefix ( SmallVectorImpl< char > &  OutName,
const GlobalValue GV,
bool  isImplicitlyPrivate,
bool  UseGlobalPrefix = true 
)
void Mangler::getNameWithPrefix ( SmallVectorImpl< char > &  OutName,
const Twine GVName,
ManglerPrefixTy  PrefixTy = Mangler::Default,
bool  UseGlobalPrefix = true 
)

getNameWithPrefix - Fill OutName with the name of the appropriate prefix and the specified name as the global variable name. GVName must not be empty.

Definition at line 29 of file Mangler.cpp.

References llvm::SmallVectorImpl< T >::append(), llvm::StringRef::begin(), llvm::StringRef::empty(), llvm::StringRef::end(), llvm::TargetMachine::getMCAsmInfo(), LinkerPrivate, llvm::cl::Prefix, Private, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::LibFunc::strlen, llvm::StringRef::substr(), and llvm::Twine::toStringRef().


The documentation for this class was generated from the following files: