Add a new method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-08 22:09:07 +00:00
parent 800473c8df
commit ddc49d6121

View File

@ -20,6 +20,7 @@
namespace llvm {
class Value;
class Type;
class Module;
class GlobalValue;
@ -32,6 +33,9 @@ class Mangler {
Module &M;
bool AddUnderscorePrefix;
unsigned TypeCounter;
std::map<const Type*, unsigned> TypeMap;
typedef std::map<const Value *, std::string> ValueMap;
ValueMap Memo;
@ -44,6 +48,10 @@ public:
// symbols will be prefixed with an underscore.
Mangler(Module &M, bool AddUnderscorePrefix = false);
/// getTypeID - Return a unique ID for the specified LLVM type.
///
unsigned getTypeID(const Type *Ty);
/// getValueName - Returns the mangled name of V, an LLVM Value,
/// in the current module.
///