diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-10 19:02:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-10 19:02:52 +0000 |
commit | 6c636c0fffe03f4acc5a68ce9f9e2f22d6c8ec8a (patch) | |
tree | 8c11ab438056d7101dee2e4747d32e075dda5cad | |
parent | 2f9bc4f2d36ab8193ac8d9246377abac6a1ba08d (diff) |
Remove M, which is dead. Eliminate a dead typedef. Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24282 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/Mangler.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 2b208c7f29..975791f002 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -30,16 +30,22 @@ class Mangler { /// 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: |