Skip to content
Snippets Groups Projects
Commit a6302c90 authored by Chris Lattner's avatar Chris Lattner
Browse files

Add a new method

llvm-svn: 14705
parent a0399552
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
namespace llvm {
class Value;
class Type;
class Module;
class GlobalValue;
......@@ -32,6 +33,9 @@ class Mangler {
Module &M;
bool AddUnderscorePrefix;
unsigned TypeCounter;
std::map<const Type*, unsigned> TypeMap;
typedef std::map<const Value *, std::string> ValueMap;
ValueMap Memo;
......@@ -44,6 +48,10 @@ public:
// symbols will be prefixed with an underscore.
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,
/// in the current module.
///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment