aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-08 22:09:07 +0000
committerChris Lattner <sabre@nondot.org>2004-07-08 22:09:07 +0000
commitddc49d6121d90728fc08c1fdc03e2cccdf58d272 (patch)
tree6694e2bfb326d6551bfa40a0dd71fb7c62ce3f9a
parent800473c8df8f0c9b566c9216bf124495451cb573 (diff)
Add a new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14705 91177308-0d34-0410-b5e6-96231b3b80d8
-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.
///