LLVM API Documentation
#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"
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) |
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] |
Definition at line 23 of file Mangler.cpp.
References llvm::StringRef::empty(), llvm::DataLayout::getGlobalPrefix(), llvm::DataLayout::getLinkerPrivateGlobalPrefix(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::Mangler::LinkerPrivate, Name, llvm::cl::Prefix, llvm::Mangler::Private, llvm::StringRef::substr(), and llvm::Twine::toStringRef().
Referenced by llvm::Mangler::getNameWithPrefix().