[llvm-commits] CVS: llvm/include/llvm/Support/Mangler.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 8 17:10:08 PDT 2004
Changes in directory llvm/include/llvm/Support:
Mangler.h updated: 1.9 -> 1.10
---
Log message:
Add a new method
---
Diffs of the changes: (+8 -0)
Index: llvm/include/llvm/Support/Mangler.h
diff -u llvm/include/llvm/Support/Mangler.h:1.9 llvm/include/llvm/Support/Mangler.h:1.10
--- llvm/include/llvm/Support/Mangler.h:1.9 Fri Feb 13 18:30:31 2004
+++ llvm/include/llvm/Support/Mangler.h Thu Jul 8 17:09:07 2004
@@ -20,6 +20,7 @@
namespace llvm {
class Value;
+class Type;
class Module;
class GlobalValue;
@@ -32,6 +33,9 @@
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 @@
// 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.
///
More information about the llvm-commits
mailing list