diff --git a/include/llvm/Support/Mangler.h b/include/llvm/Support/Mangler.h index 2b208c7f299..975791f0023 100644 --- a/include/llvm/Support/Mangler.h +++ b/include/llvm/Support/Mangler.h @@ -30,16 +30,22 @@ class Mangler { /// std::set 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 TypeMap; - - typedef std::map ValueMap; - ValueMap Memo; + /// Memo - This is used to remember the name that we assign a value. + /// + std::map 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 TypeMap; + unsigned TypeCounter; void InsertName(GlobalValue *GV, std::map &Names); public: