aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/Mangler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h
index 2528420d47..4fa5329fa5 100644
--- a/include/llvm/Support/Mangler.h
+++ b/include/llvm/Support/Mangler.h
@@ -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.
///