mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
3dc9a2a61f
llvm-svn: 1503
28 lines
763 B
C++
28 lines
763 B
C++
//===- llvm/Support/NameMangling.h - Name Mangling for LLVM ------*- C++ -*--=//
|
|
//
|
|
// This file implements a consistent scheme for name mangling symbols.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_SUPPORT_NAMEMANGLING_H
|
|
#define LLVM_SUPPORT_NAMEMANGLING_H
|
|
|
|
#include <string>
|
|
class Type;
|
|
class Value;
|
|
|
|
// MangleTypeName - Implement a consistent name-mangling scheme for
|
|
// a given type.
|
|
//
|
|
std::string MangleTypeName(const Type *type);
|
|
|
|
// MangleName - implement a consistent name-mangling scheme for all
|
|
// externally visible (i.e., global) objects.
|
|
//
|
|
// privateName should be unique within the module.
|
|
//
|
|
std::string MangleName(const std::string &privateName, const Value *V);
|
|
|
|
#endif
|
|
|