mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Add a new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
800473c8df
commit
ddc49d6121
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class Value;
|
class Value;
|
||||||
|
class Type;
|
||||||
class Module;
|
class Module;
|
||||||
class GlobalValue;
|
class GlobalValue;
|
||||||
|
|
||||||
@ -32,6 +33,9 @@ class Mangler {
|
|||||||
Module &M;
|
Module &M;
|
||||||
bool AddUnderscorePrefix;
|
bool AddUnderscorePrefix;
|
||||||
|
|
||||||
|
unsigned TypeCounter;
|
||||||
|
std::map<const Type*, unsigned> TypeMap;
|
||||||
|
|
||||||
typedef std::map<const Value *, std::string> ValueMap;
|
typedef std::map<const Value *, std::string> ValueMap;
|
||||||
ValueMap Memo;
|
ValueMap Memo;
|
||||||
|
|
||||||
@ -44,6 +48,10 @@ public:
|
|||||||
// symbols will be prefixed with an underscore.
|
// symbols will be prefixed with an underscore.
|
||||||
Mangler(Module &M, bool AddUnderscorePrefix = false);
|
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,
|
/// getValueName - Returns the mangled name of V, an LLVM Value,
|
||||||
/// in the current module.
|
/// in the current module.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user