class Mangler

Declaration

class Mangler { /* full declaration omitted */ };

Declared at: llvm/include/llvm/IR/Mangler.h:27

Member Variables

private DenseMap<const llvm::GlobalValue*, unsigned int> AnonGlobalIDs
We need to give global values the same name every time they are mangled. This keeps track of the number we give to anonymous ones.

Method Overview

  • public void getNameWithPrefix(llvm::raw_ostream & OS, const llvm::GlobalValue * GV, bool CannotUsePrivateLabel) const
  • public void getNameWithPrefix(SmallVectorImpl<char> & OutName, const llvm::GlobalValue * GV, bool CannotUsePrivateLabel) const
  • public static void getNameWithPrefix(llvm::raw_ostream & OS, const llvm::Twine & GVName, const llvm::DataLayout & DL)
  • public static void getNameWithPrefix(SmallVectorImpl<char> & OutName, const llvm::Twine & GVName, const llvm::DataLayout & DL)

Methods

void getNameWithPrefix(
    llvm::raw_ostream& OS,
    const llvm::GlobalValue* GV,
    bool CannotUsePrivateLabel) const

Description

Print the appropriate prefix and the specified global variable's name. If the global variable doesn't have a name, this fills in a unique name for the global.

Declared at: llvm/include/llvm/IR/Mangler.h:36

Parameters

llvm::raw_ostream& OS
const llvm::GlobalValue* GV
bool CannotUsePrivateLabel

void getNameWithPrefix(
    SmallVectorImpl<char>& OutName,
    const llvm::GlobalValue* GV,
    bool CannotUsePrivateLabel) const

Declared at: llvm/include/llvm/IR/Mangler.h:38

Parameters

SmallVectorImpl<char>& OutName
const llvm::GlobalValue* GV
bool CannotUsePrivateLabel

static void getNameWithPrefix(
    llvm::raw_ostream& OS,
    const llvm::Twine& GVName,
    const llvm::DataLayout& DL)

Description

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

Declared at: llvm/include/llvm/IR/Mangler.h:43

Parameters

llvm::raw_ostream& OS
const llvm::Twine& GVName
const llvm::DataLayout& DL

static void getNameWithPrefix(
    SmallVectorImpl<char>& OutName,
    const llvm::Twine& GVName,
    const llvm::DataLayout& DL)

Declared at: llvm/include/llvm/IR/Mangler.h:45

Parameters

SmallVectorImpl<char>& OutName
const llvm::Twine& GVName
const llvm::DataLayout& DL