#include "llvm/IR/Mangler.h"
#include "llvm/IR/CallingConv.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Module.h"
#include "gtest/gtest.h"
usingnamespacellvm;
static std::string mangleStr(StringRef IRName, Mangler &Mang,
const DataLayout &DL) { … }
static std::string mangleFunc(StringRef IRName,
GlobalValue::LinkageTypes Linkage,
llvm::CallingConv::ID CC, Module &Mod,
Mangler &Mang) { … }
namespace {
TEST(ManglerTest, MachO) { … }
TEST(ManglerTest, WindowsX86) { … }
TEST(ManglerTest, WindowsX64) { … }
TEST(ManglerTest, XCOFF) { … }
TEST(ManglerTest, GOFF) { … }
}