mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
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
This commit is contained in:
parent
2f9bc4f2d3
commit
6c636c0fff
@ -30,17 +30,23 @@ class Mangler {
|
|||||||
///
|
///
|
||||||
std::set<const GlobalValue*> MangledGlobals;
|
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;
|
const char *Prefix;
|
||||||
|
|
||||||
unsigned TypeCounter;
|
/// Memo - This is used to remember the name that we assign a value.
|
||||||
std::map<const Type*, unsigned> TypeMap;
|
///
|
||||||
|
std::map<const Value*, std::string> Memo;
|
||||||
typedef std::map<const Value*, std::string> ValueMap;
|
|
||||||
ValueMap Memo;
|
|
||||||
|
|
||||||
|
/// Count - This simple counter is used to unique value names.
|
||||||
|
///
|
||||||
unsigned Count;
|
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);
|
void InsertName(GlobalValue *GV, std::map<std::string, GlobalValue*> &Names);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user