Allow memory sizes to be negative, eliminate TmpRSS
[oota-llvm.git] / include / llvm / Support / NameMangling.h
1 //===- llvm/Support/NameMangling.h - Name Mangling for LLVM ------*- C++ -*--=//
2 //
3 // This file implements a consistent scheme for name mangling symbols.
4 //
5 //===----------------------------------------------------------------------===//
6
7 #ifndef LLVM_SUPPORT_NAMEMANGLING_H
8 #define LLVM_SUPPORT_NAMEMANGLING_H
9
10 #include <string>
11 class Type;
12 class Value;
13
14 // MangleTypeName - Implement a consistent name-mangling scheme for
15 //                  a given type.
16 // 
17 std::string MangleTypeName(const Type *type);
18
19 // MangleName - implement a consistent name-mangling scheme for all
20 // externally visible (i.e., global) objects.
21 //
22 // privateName should be unique within the module.
23 // 
24 std::string MangleName(const std::string &privateName, const Value *V);
25
26 #endif
27