diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-07-08 22:09:07 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-07-08 22:09:07 +0000 |
| commit | a6302c9059c2edd03c006802d05ce41964cdf57a (patch) | |
| tree | 6587a22d099583fbbe323ce4aeb482e0cacb6355 /llvm | |
| parent | a0399552834a040cba3e6e43f82f27964021eb07 (diff) | |
| download | bcm5719-llvm-a6302c9059c2edd03c006802d05ce41964cdf57a.tar.gz bcm5719-llvm-a6302c9059c2edd03c006802d05ce41964cdf57a.zip | |
Add a new method
llvm-svn: 14705
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/Mangler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Mangler.h b/llvm/include/llvm/Support/Mangler.h index 2528420d47d..4fa5329fa56 100644 --- a/llvm/include/llvm/Support/Mangler.h +++ b/llvm/include/llvm/Support/Mangler.h @@ -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. /// |

