LLVM
8.0.1
|
#include "llvm/IR/Mangler.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/Twine.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Enumerations | |
enum | ManglerPrefixTy |
Functions | |
static void | getNameWithPrefixImpl (raw_ostream &OS, const Twine &GVName, ManglerPrefixTy PrefixTy, const DataLayout &DL, char Prefix) |
static void | getNameWithPrefixImpl (raw_ostream &OS, const Twine &GVName, const DataLayout &DL, ManglerPrefixTy PrefixTy) |
static bool | hasByteCountSuffix (CallingConv::ID CC) |
static void | addByteCountSuffix (raw_ostream &OS, const Function *F, const DataLayout &DL) |
Microsoft fastcall and stdcall functions require a suffix on their name indicating the number of words of arguments they take. More... | |
enum ManglerPrefixTy |
Definition at line 26 of file Mangler.cpp.
|
static |
Microsoft fastcall and stdcall functions require a suffix on their name indicating the number of words of arguments they take.
Definition at line 94 of file Mangler.cpp.
References llvm::alignTo(), llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::DataLayout::getPointerSize(), and llvm::DataLayout::getTypeAllocSize().
Referenced by llvm::Mangler::getNameWithPrefix().
|
static |
Definition at line 33 of file Mangler.cpp.
References assert(), llvm::DataLayout::doNotMangleLeadingQuestionMark(), llvm::StringRef::empty(), llvm::DataLayout::getLinkerPrivateGlobalPrefix(), llvm::DataLayout::getPrivateGlobalPrefix(), Name, llvm::cl::Prefix, llvm::StringRef::substr(), and llvm::Twine::toStringRef().
Referenced by llvm::Mangler::getNameWithPrefix(), and getNameWithPrefixImpl().
|
static |
Definition at line 62 of file Mangler.cpp.
References llvm::DataLayout::getGlobalPrefix(), getNameWithPrefixImpl(), and llvm::cl::Prefix.
|
static |
Definition at line 81 of file Mangler.cpp.
References llvm::CallingConv::X86_FastCall, llvm::CallingConv::X86_StdCall, and llvm::CallingConv::X86_VectorCall.
Referenced by llvm::Mangler::getNameWithPrefix().