clang: lib/AST/Mangle.cpp File Reference (original) (raw)

#include "[clang/AST/Mangle.h](Mangle%5F8h%5Fsource.html)"
#include "[clang/AST/ASTContext.h](ASTContext%5F8h%5Fsource.html)"
#include "[clang/AST/Attr.h](AST%5F2Attr%5F8h%5Fsource.html)"
#include "[clang/AST/Decl.h](Decl%5F8h%5Fsource.html)"
#include "[clang/AST/DeclCXX.h](DeclCXX%5F8h%5Fsource.html)"
#include "[clang/AST/DeclObjC.h](DeclObjC%5F8h%5Fsource.html)"
#include "[clang/AST/DeclTemplate.h](DeclTemplate%5F8h%5Fsource.html)"
#include "[clang/AST/ExprCXX.h](ExprCXX%5F8h%5Fsource.html)"
#include "[clang/AST/VTableBuilder.h](VTableBuilder%5F8h%5Fsource.html)"
#include "[clang/Basic/ABI.h](ABI%5F8h%5Fsource.html)"
#include "[clang/Basic/TargetInfo.h](include%5F2clang%5F2Basic%5F2TargetInfo%5F8h%5Fsource.html)"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Mangler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Functions
static void mangleFunctionBlock (MangleContext &Context, StringRef Outer, const BlockDecl *BD, raw_ostream &Out)
static bool isExternC (const NamedDecl *ND)
static CCMangling getCallingConvMangling (const ASTContext &Context, const NamedDecl *ND)

CCMangling

Enumerator
CCM_Other
CCM_Fast
CCM_RegCall
CCM_Vector
CCM_Std
CCM_WasmMainArgcArgv

Definition at line 48 of file Mangle.cpp.

getCallingConvMangling()

Definition at line 65 of file Mangle.cpp.

References clang::Type::castAs(), clang::CC_X86FastCall, clang::CC_X86StdCall, clang::CC_X86VectorCall, CCM_Fast, CCM_Other, CCM_Std, CCM_Vector, CCM_WasmMainArgcArgv, clang::FunctionType::getCallConv(), clang::TargetInfo::getCXXABI(), clang::ASTContext::getLangOpts(), clang::ASTContext::getTargetInfo(), clang::TargetInfo::getTriple(), clang::ValueDecl::getType(), isExternC(), and clang::T.

Referenced by clang::MangleContext::mangleName(), and clang::MangleContext::shouldMangleDeclName().

isExternC()

mangleFunctionBlock()

static void mangleFunctionBlock ( MangleContext & Context, StringRef Outer, const BlockDecl * BD, raw_ostream & Out ) static