[llvm-commits] CVS: llvm/include/llvm/Support/Mangler.h

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 10 11:03:04 PST 2005



Changes in directory llvm/include/llvm/Support:

Mangler.h updated: 1.16 -> 1.17
---
Log message:

Remove M, which is dead.  Eliminate a dead typedef.  Add comments.


---
Diffs of the changes:  (+12 -6)

 Mangler.h |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)


Index: llvm/include/llvm/Support/Mangler.h
diff -u llvm/include/llvm/Support/Mangler.h:1.16 llvm/include/llvm/Support/Mangler.h:1.17
--- llvm/include/llvm/Support/Mangler.h:1.16	Thu Nov 10 12:55:09 2005
+++ llvm/include/llvm/Support/Mangler.h	Thu Nov 10 13:02:52 2005
@@ -30,16 +30,22 @@
   ///
   std::set<const GlobalValue*> MangledGlobals;
 
-  Module &M;
+  /// Prefix - This string is added to each symbol that is emitted, unless the
+  /// symbol is marked as not needing this prefix.
   const char *Prefix;
 
-  unsigned TypeCounter;
-  std::map<const Type*, unsigned> TypeMap;
-
-  typedef std::map<const Value*, std::string> ValueMap;
-  ValueMap Memo;
+  /// Memo - This is used to remember the name that we assign a value.
+  ///
+  std::map<const Value*, std::string> Memo;
 
+  /// Count - This simple counter is used to unique value names.
+  ///
   unsigned Count;
+  
+  /// TypeMap - If the client wants us to unique types, this keeps track of the
+  /// current assignments and TypeCounter keeps track of the next id to assign.
+  std::map<const Type*, unsigned> TypeMap;
+  unsigned TypeCounter;
 
   void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names);
 public:






More information about the llvm-commits mailing list