Add a new method
authorChris Lattner <sabre@nondot.org>
Thu, 8 Jul 2004 22:09:07 +0000 (22:09 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Jul 2004 22:09:07 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14705 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Mangler.h

index 2528420d47d479894bef7ec9e6ada0f6a480a81d..4fa5329fa56ce3d052d2c639aa28aeb68730f492 100644 (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.
   ///