1 //===- llvm/Support/NameMangling.h - Name Mangling for LLVM ------*- C++ -*--=//
3 // This file implements a consistent scheme for name mangling symbols.
5 //===----------------------------------------------------------------------===//
7 #ifndef LLVM_SUPPORT_NAMEMANGLING_H
8 #define LLVM_SUPPORT_NAMEMANGLING_H
14 // MangleTypeName - Implement a consistent name-mangling scheme for
17 std::string MangleTypeName(const Type *type);
19 // MangleName - implement a consistent name-mangling scheme for all
20 // externally visible (i.e., global) objects.
22 // privateName should be unique within the module.
24 std::string MangleName(const std::string &privateName, const Value *V);