LLVM API Documentation

Public Types | Public Member Functions
llvm::Mangler Class Reference

#include <Mangler.h>

List of all members.

Public Types

enum  ManglerPrefixTy { Default, Private, LinkerPrivate }

Public Member Functions

 Mangler (const DataLayout *DL)
void getNameWithPrefix (raw_ostream &OS, const GlobalValue *GV, bool CannotUsePrivateLabel) const
void getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel) const
void getNameWithPrefix (raw_ostream &OS, const Twine &GVName, ManglerPrefixTy PrefixTy=Mangler::Default) const
void getNameWithPrefix (SmallVectorImpl< char > &OutName, const Twine &GVName, ManglerPrefixTy PrefixTy=Mangler::Default) const

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

Definition at line 49 of file Mangler.h.


Member Function Documentation

void Mangler::getNameWithPrefix ( raw_ostream OS,
const GlobalValue GV,
bool  CannotUsePrivateLabel 
) const
void Mangler::getNameWithPrefix ( SmallVectorImpl< char > &  OutName,
const GlobalValue GV,
bool  CannotUsePrivateLabel 
) const

Definition at line 142 of file Mangler.cpp.

References getNameWithPrefix().

void Mangler::getNameWithPrefix ( raw_ostream OS,
const Twine GVName,
ManglerPrefixTy  PrefixTy = Mangler::Default 
) const

Print the appropriate prefix and the specified name as the global variable name. GVName must not be empty.

Definition at line 54 of file Mangler.cpp.

References getNameWithPrefixx().

void Mangler::getNameWithPrefix ( SmallVectorImpl< char > &  OutName,
const Twine GVName,
ManglerPrefixTy  PrefixTy = Mangler::Default 
) const

Definition at line 59 of file Mangler.cpp.

References getNameWithPrefix().


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