LLVM API Documentation

Functions
Mangler.cpp File Reference
#include "llvm/IR/Mangler.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for Mangler.cpp:

Go to the source code of this file.

Functions

static void getNameWithPrefixx (raw_ostream &OS, const Twine &GVName, Mangler::ManglerPrefixTy PrefixTy, const DataLayout &DL, bool UseAt)
static void AddFastCallStdCallSuffix (raw_ostream &OS, const Function *F, const DataLayout &TD)

Function Documentation

static void AddFastCallStdCallSuffix ( raw_ostream OS,
const Function F,
const DataLayout TD 
) [static]

AddFastCallStdCallSuffix - Microsoft fastcall and stdcall functions require a suffix on their name indicating the number of words of arguments they take.

Definition at line 69 of file Mangler.cpp.

References llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::Function::getAttributes(), llvm::DataLayout::getTypeAllocSize(), llvm::AttributeSet::hasAttribute(), and llvm::Attribute::InReg.

Referenced by llvm::Mangler::getNameWithPrefix().

static void getNameWithPrefixx ( raw_ostream OS,
const Twine GVName,
Mangler::ManglerPrefixTy  PrefixTy,
const DataLayout DL,
bool  UseAt 
) [static]